Description Usage Arguments Value Author(s) Examples
View source: R/adjustEffectNames.r
Adjust for appropriate syntax describing the effects matching the structural formula.
1 | adjustEffectNames(effectsMatrix, effectNames)
|
effectsMatrix |
a matrix of variables by terms showing which variables
appear in which terms generated by the |
effectNames |
a vector of character containing the labels of the
treatment or block terms in the model generated by the |
A vector of character containing the labels of the terms in the model with appropriate syntax describing the effects.
Kevin Chang
1 2 3 4 5 | str.for = "A*(B/E/C)*D"
effectsMatrix= attr(terms(as.formula(paste("~", str.for)), keep.order = TRUE) , "factors")
effectNames = attr(terms(as.formula(paste("~", str.for)), keep.order = TRUE) , "term.labels")
adjustEffectNames(effectsMatrix, effectNames)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.