expandLinFormula: expandLinFormula

Description Usage Arguments Details Author(s) See Also Examples

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)	 

twNlme documentation built on May 2, 2019, 6:48 p.m.