adjustEffectNames: Adjust the Effects' Names

Description Usage Arguments Value Author(s) Examples

View source: R/adjustEffectNames.r

Description

Adjust for appropriate syntax describing the effects matching the structural formula.

Usage

1
adjustEffectNames(effectsMatrix, effectNames)

Arguments

effectsMatrix

a matrix of variables by terms showing which variables appear in which terms generated by the terms.

effectNames

a vector of character containing the labels of the treatment or block terms in the model generated by the terms.

Value

A vector of character containing the labels of the terms in the model with appropriate syntax describing the effects.

Author(s)

Kevin Chang

Examples

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) 

kcha193/infoDecompuTE documentation built on April 20, 2020, 8:30 a.m.