Learn R Programming

nmm (version 0.9)

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

Run this code
# 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