wvenable at attunga.stats.adelaide.edu.au
Sun Apr 5 03:57:36 CEST 1998
Helgi Tomasson writes:
> out <- glm(....)
> 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?
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)
> SE <- sout$coef[, 2]
> Vm <- sout$covmat
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