[R] gls function
Douglas Bates
bates at stat.wisc.edu
Thu Aug 7 17:33:45 CEST 2003
"Prodromos Zanis" <pzanis at geol.uoa.gr> writes:
> I use the gls function but in contrast to the lm function in which
> when I type summary(lm(...))$coef I receive all the coefficients
> (estimate, Std. Error, t-value and pvalue), with gls when I type
> summary(gls(...))$coef I only receive the estimate of the
> reg. coefficient without std. error and t- and p-values.
> Do you have any suggestion how to solve my problem?
Look at the structure of the value returned by summary applied to a
gls object.
library(nlme)
example(gls)
str(summary(fm1))
You will find that you want to extract
summary(fm1)$tTable
More information about the R-help
mailing list