Skip to content

extracting standard errors in glm.nb

5 messages · Dieter Menne, David Winsemius, jpl

#
jpl <s-jlubben1 <at> math.unl.edu> writes:
library(MASS)
quine.nb1 <- glm.nb(Days ~ Sex/(Age + Eth*Lrn), data = quine)
sumnb1 = summary(quine.nb1)
sumnb1
str(sumnb1) # tells you about the anatomy. Check for $coefficients

Dieter
jpl
#
Hi Dieter,

I don't see anything in the str(model) output that matches the standard
errors of the coefficients given in summary(model).  Any other suggestion? 
Thanks.

jpl
Dieter Menne wrote:

  
    
#
Look more thoroughly?

You should see this about 2/3 the way down the output:

$ coefficients  : num [1:14, 1:4] 3.019 -0.475 -0.709 -0.724 -0.615 ...
   ..- attr(*, "dimnames")=List of 2
   .. ..$ : chr [1:14] "(Intercept)" "SexM" "SexF:AgeF1"  
"SexM:AgeF1" ...
   .. ..$ : chr [1:4] "Estimate" "Std. Error" "z value" "Pr(>|z|)"

You can also get the same information by entering:

coef(sumnb1)
jpl
#
Mea culpa.  Thanks!

jpl
David Winsemius wrote: