expandLinFormula

Share:

Description

Extends the linear formula to an expression involving coefficients

Usage

1
expandLinFormula(linForm, suffix = "", varNames = NULL)

Arguments

linForm

formula for fixed coefficients depending on linear term

suffix

base parameter name

varNames

variable names to use

Details

parameter names will be lhs of the formula + suffix + .i wiht .0 for the intercept

if there is no intercept, starting from .1

Author(s)

Thomas Wutzler

See Also

twNlme-package

Examples

1
2
3
4
5
6
7
expandLinFormula(b0~1)


# note that si*age treated as multiplication instead of all interactions


expandLinFormula(linForm <- b0~si+log(age)+I(si+age)+si*age)