Add interactions
addInter
add interactions into continuous equations.
addInter(eqcont, par_c, intv, inter_parl)
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). |
list: 1 - expressions of errors, equations, parameters to estimate
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)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.