coef.gls {nlme}R Documentation

Extract gls Coefficients

Description

The estimated coefficients for the linear model represented by object are extracted.

Usage

coef(object, allCoef, ...)

Arguments

object an object inheriting from class gls, representing a generalized least squares fitted linear model.
allCoef an optional logical value indicating whether all coefficients, including the non-estimable, should be extracted. Non-estimable coefficients are assigned NAs. Default is FALSE.
... some methods for this generic require additional arguments. None are used in this method.

Value

a vector with the estimated coefficients for the linear model represented by object.

Author(s)

Jose Pinheiro Jose.Pinheiro@pharma.novartis.com and Douglas Bates bates@stat.wisc.edu

See Also

gls

Examples

data(Ovary)
fm1 <- gls(follicles ~ sin(2*pi*Time) + cos(2*pi*Time), Ovary,
           correlation = corAR1(form = ~ 1 | Mare))
coef(fm1)

[Package Contents]