update.lme
object
lme
update(object, fixed, data, random, correlation, weights, subset, method, na.action, control)
data(Orthodont) fm1 <- lme(distance ~ age, Orthodont, random = ~ age | Subject) fm2 <- update(fm1, distance ~ age * Sex) summary(fm1) summary(fm2)
Run the code above in your browser using DataLab