update.nlme {nlme} | R Documentation |
The non-missing arguments in the call to the update.nlme
method
replace the corresponding arguments in the original call used to
produce object
and nlme
is used with the modified call to
produce an updated fitted object.
update(object, model, data, fixed, random, groups, start, correlation, weights, subset, method, na.action, naPattern, control, verbose)
object |
an object inheriting from class nlme , representing
a fitted nonlinear mixed-effects model. |
other arguments |
defined as in nlme . See that
function's documentation for descriptions of and default values
for these arguments. |
an updated nlme
object.
Jose Pinheiro and Douglas Bates
data(Loblolly) fm1 <- nlme(height ~ SSasymp(age, Asym, R0, lrc), data = Loblolly, fixed = Asym + R0 + lrc ~ 1, random = Asym ~ 1, start = c(Asym = 103, R0 = -8.5, lrc = -3.3)) fm2 <- update(fm1, random = pdDiag(Asym + lrc ~ 1)) summary(fm1) summary(fm2)