powered by
addInter add interactions into continuous equations.
addInter
addInter(eqcont, par_c, intv, inter_parl)
Vector of strings containing equations.
Names of coefficients.
Vector of integers corresponding to coefficients to which interactions should be added.
Names of new coefficients (interactions).
list: 1 - expressions of errors, equations, parameters to estimate
# NOT RUN { 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) # }
Run the code above in your browser using DataLab