adjustEffectNames {infoDecompuTE} | R Documentation |
Adjust for appropriate syntax describing the effects matching the structural formula.
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
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)