R-beta: standard-errors-glm
Bill Venables
wvenable at attunga.stats.adelaide.edu.au
Sun Apr 5 03:57:36 CEST 1998
Helgi Tomasson writes:
> out <- glm(....)
> summary(out)
> I want to get the standard errors from the output.
> SE <- summary(out)$coef[, 2]
> How do I get the covariance matrix of the estimates?
> summary(out)$covmat
If you want several things from the summary it is less
computation to create the object once and then extract them.
> out <- glm(...)
> sout <- summary(out)
> sout
.
.
.
> SE <- sout$coef[, 2]
> Vm <- sout$covmat
Also
> names(sout)
gives a good idea what else is buried in the summary object.
Remember that when you print an object you don't necessarily see
everything that is there. (This is a feature, not a bug!)
--
Bill Venables, Head, Dept of Statistics, Tel.: +61 8 8303 5418
University of Adelaide, Fax.: +61 8 8303 3696
South AUSTRALIA. 5005. Email: Bill.Venables at adelaide.edu.au
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
More information about the R-help
mailing list