update.gls
object
gls
update(object, model, data, correlation, weights, subset, method, na.action, control)
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 DataCamp Workspace