Displaying 1 result from an estimated 1 matches for "formulaobject".
2012 Jan 22
1
How to construct a formula
...y.Date, data, na.action="na.exclude",
method="REML")
} else {
model=lme(test_variable~Genotype + Weight + Gender,
random=~1|Assay.Date, data, na.action="na.exclude", method="REML")
}
} else {
.... etc
What I want to do:
formulaObject = test_variable~Genotype
if(weight_significant) {
formulaObject = formulaObject + Weight;
}
if(gender_significant) {
formulaObject = formulaObject + Gender;
}
if(weight_gender_interaction_significant) {
formulaObject = formulaObject + Weight*Gender;
}
model=lme(formulaObject, rando...