Displaying 1 result from an estimated 1 matches for "depm".
Did you mean:
dep
2009 Dec 10
1
updating arguments of formulae
Dear R-Community,
I am relatively new with R, so sorry for things which for you might be
obvious...
I am trying to automatically update lmer formulae.
the variables of the model are:
depM= my dependent measure
Sb2= a random factor
OS = a predictor
VR= another predictor
So, I am building the first model with random intercept only:
model = lmer(depM ~ (1 |Sb2))
then I update the formula adding the first predictor
model1 = update(model, as.formula(paste(". ~ . + ", OS)))...