update.lme {nlme} | R Documentation |
The non-missing arguments in the call to the update.lme
method
replace the corresponding arguments in the original call used to
produce object
and lme
is used with the modified call to
produce an updated fitted object.
update(object, fixed, data, random, correlation, weights, subset, method, na.action, control)
object |
an object inheriting from class lme , representing
a fitted linear mixed-effects model. |
other arguments |
defined as in lme . See that function's
documentation for descriptions of and default values for these arguments. |
an updated lme
object.
Jose Pinheiro and Douglas Bates
data(Orthodont) fm1 <- lme(distance ~ age, Orthodont, random = ~ age | Subject) fm2 <- update(fm1, distance ~ age * Sex) summary(fm1) summary(fm2)