addInter: Add interactions

Description Usage Arguments Value Examples

View source: R/006functions.R

Description

addInter add interactions into continuous equations.

Usage

1
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

1
2
3
4
5
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 documentation built on Jan. 7, 2021, 5:10 p.m.

Related to addInter in nmm...