Extracting the Variance-Covariance Matrix from a COM-Poisson Model Fit

# S3 method for cmp
vcov(object, ...)

Arguments

object

an object class 'cmp' object, obtained from a call to glm.cmp

...

other arguments passed to or from other methods (currently unused).

Value

The method will return the estimated covariances between the parameter estimates of the fitted cmp model.

Examples

data(attendance)
M.attendance <- glm.cmp(daysabs ~ gender + math + prog, data = attendance)
vcov(M.attendance)
#>                  (Intercept)    gendermale          math  progAcademic
#> (Intercept)     0.0362548751 -6.220523e-03 -2.500916e-04 -2.278626e-02
#> gendermale     -0.0062205227  1.372357e-02  5.319847e-06 -7.355538e-04
#> math           -0.0002500916  5.319847e-06  5.692438e-06  1.039727e-05
#> progAcademic   -0.0227862647 -7.355538e-04  1.039727e-05  2.873856e-02
#> progVocational -0.0189576458 -5.111468e-04 -7.981398e-05  2.253264e-02
#>                progVocational
#> (Intercept)     -1.895765e-02
#> gendermale      -5.111468e-04
#> math            -7.981398e-05
#> progAcademic     2.253264e-02
#> progVocational   3.590207e-02