Learn R Programming

nlme (version 3.1-19)

update.gls: Update a gls Object

Description

The non-missing arguments in the call to the update.gls method replace the corresponding arguments in the original call used to produce object and gls is used with the modified call to produce an updated fitted object.

Usage

## S3 method for class 'gls':
update(object, model, data, correlation, weights, subset,
        method, na.action, control, verbose, \dots)

Arguments

Value

an updated gls object.

See Also

gls

Examples

Run this code
data(Ovary)
fm1 <- gls(follicles ~ sin(2*pi*Time) + cos(2*pi*Time), Ovary,
           correlation = corAR1(form = ~ 1 | Mare))
fm2 <- update(fm1, weights = varPower())

Run the code above in your browser using DataLab