Description Usage Arguments Details Author(s) See Also Examples
Extends the linear formula to an expression involving coefficients
1 | expandLinFormula(linForm, suffix = "", varNames = NULL)
|
linForm |
formula for fixed coefficients depending on linear term |
suffix |
base parameter name |
varNames |
variable names to use |
parameter names will be lhs of the formula + suffix + .i wiht .0 for the intercept
if there is no intercept, starting from .1
Thomas Wutzler
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.