Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

addInter

Add interactions


Description

addInter add interactions into continuous equations.

Usage

addInter(eqcont, par_c, intv, inter_parl)

Arguments

eqcont

Vector of strings containing equations.

par_c

Names of coefficients.

intv

Vector of integers corresponding to coefficients to which interactions should be added.

inter_parl

Names of new coefficients (interactions).

Value

list: 1 - expressions of errors, equations, parameters to estimate

Examples

eq_c <- c("Tw ~ tw*w + ph1*Tc", "Tf1 ~ (1+w)^tw + ph1^3*Tc")
parl <- c("tw", "ph1")
intv <- c(1,0)
inter_parl <- c('yytw','yyph1')
res <- addInter(eq_c, parl, intv, inter_parl)

nmm

Nonlinear Multivariate Models

v0.9
GPL (>= 2)
Authors
Simona Jokubauskaite [aut, cre], Reinhard Hoessinger [aut], Friedrich Leisch [aut]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.