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)	 


Search within the twNlme package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.