Learn R Programming

nlme (version 3.1-31)

coef.gls: Extract gls Coefficients

Description

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

Usage

## S3 method for class 'gls':
coef(object, allCoef, \dots)

Arguments

Value

a vector with the estimated coefficients for the linear model represented by 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))
coef(fm1)

Run the code above in your browser using DataLab