Re: R-beta: standard-errors-glm

Bill Venables (wvenable@attunga.stats.adelaide.edu.au)
Sun, 5 Apr 1998 11:27:36 +0930


Date: Sun, 5 Apr 1998 11:27:36 +0930
Message-Id: <9804050157.AA12714@attunga.stats.adelaide.edu.au>
From: Bill Venables <wvenable@attunga.stats.adelaide.edu.au>
To: helgito@hag.hi.is (Helgi Tomasson)
Subject: Re: R-beta: standard-errors-glm
In-Reply-To: <199804041301.NAA25279@walras.hag.hi.is>

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@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@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._