Identical to summary.glm, but with three lines of additional output: the ML estimate of theta, its standard error, and twice the log-likelihood function.

# S3 method for class 'negbin'
summary(object, dispersion = 1, correlation = FALSE, ...)

Arguments

object

fitted model object of class negbin inheriting from glm and lm. Typically the output of glm.nb.

dispersion

as for summary.glm, with a default of 1.

correlation

as for summary.glm.

...

arguments passed to or from other methods.

Value

As for summary.glm; the additional lines of output are not included in the resultant object.

Side Effects

A summary table is produced as for summary.glm, with the additional information described above.

Details

summary.glm is used to produce the majority of the output and supply the result. This function is a method for the generic function summary() for class "negbin". It can be invoked by calling summary(x) for an object x of the appropriate class, or directly by calling summary.negbin(x) regardless of the class of the object.

References

Venables, W. N. and Ripley, B. D. (2002) Modern Applied Statistics with S. Fourth edition. Springer.

Examples

summary(glm.nb(Days ~ Eth*Age*Lrn*Sex, quine, link = log))
#> 
#> Call:
#> glm.nb(formula = Days ~ Eth * Age * Lrn * Sex, data = quine, 
#>     link = log, init.theta = 1.928360145)
#> 
#> Coefficients: (4 not defined because of singularities)
#>                       Estimate Std. Error z value Pr(>|z|)    
#> (Intercept)             3.0564     0.3760    8.13  4.4e-16 ***
#> EthN                   -0.1386     0.5334   -0.26  0.79502    
#> AgeF1                  -0.6227     0.5125   -1.22  0.22433    
#> AgeF2                  -2.3632     1.0770   -2.19  0.02822 *  
#> AgeF3                  -0.3784     0.4546   -0.83  0.40521    
#> LrnSL                  -1.9577     0.9967   -1.96  0.04949 *  
#> SexM                   -0.4914     0.5104   -0.96  0.33565    
#> EthN:AgeF1              0.1029     0.7123    0.14  0.88518    
#> EthN:AgeF2             -0.5546     1.6798   -0.33  0.74130    
#> EthN:AgeF3              0.0633     0.6396    0.10  0.92116    
#> EthN:LrnSL              2.2588     1.3019    1.73  0.08274 .  
#> AgeF1:LrnSL             2.6421     1.0821    2.44  0.01462 *  
#> AgeF2:LrnSL             4.8585     1.4423    3.37  0.00076 ***
#> AgeF3:LrnSL                 NA         NA      NA       NA    
#> EthN:SexM              -0.7524     0.7220   -1.04  0.29740    
#> AgeF1:SexM              0.4092     0.8299    0.49  0.62197    
#> AgeF2:SexM              3.1098     1.1655    2.67  0.00762 ** 
#> AgeF3:SexM              1.1145     0.6365    1.75  0.07993 .  
#> LrnSL:SexM              1.5900     1.1499    1.38  0.16675    
#> EthN:AgeF1:LrnSL       -3.5493     1.4270   -2.49  0.01288 *  
#> EthN:AgeF2:LrnSL       -3.3315     2.0919   -1.59  0.11126    
#> EthN:AgeF3:LrnSL            NA         NA      NA       NA    
#> EthN:AgeF1:SexM        -0.3105     1.2055   -0.26  0.79673    
#> EthN:AgeF2:SexM         0.3469     1.7965    0.19  0.84687    
#> EthN:AgeF3:SexM         0.8329     0.8970    0.93  0.35309    
#> EthN:LrnSL:SexM        -0.1639     1.5250   -0.11  0.91441    
#> AgeF1:LrnSL:SexM       -2.4285     1.4201   -1.71  0.08725 .  
#> AgeF2:LrnSL:SexM       -4.1914     1.6201   -2.59  0.00968 ** 
#> AgeF3:LrnSL:SexM            NA         NA      NA       NA    
#> EthN:AgeF1:LrnSL:SexM   2.1711     1.9192    1.13  0.25796    
#> EthN:AgeF2:LrnSL:SexM   2.1029     2.3444    0.90  0.36972    
#> EthN:AgeF3:LrnSL:SexM       NA         NA      NA       NA    
#> ---
#> Signif. codes:  0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1
#> 
#> (Dispersion parameter for Negative Binomial(1.9284) family taken to be 1)
#> 
#>     Null deviance: 272.29  on 145  degrees of freedom
#> Residual deviance: 167.45  on 118  degrees of freedom
#> AIC: 1097
#> 
#> Number of Fisher Scoring iterations: 1
#> 
#> 
#>               Theta:  1.928 
#>           Std. Err.:  0.269 
#> 
#>  2 x log-likelihood:  -1039.324