Learn R Programming

GLMpack (version 0.1.0)

glm.vc: Compute variance-covariance matrix.

Description

Calculate the (unscaled) variance-covariance matrix from a generalized linear model regression output. Used in `GLMpack` within the function `glm.summary()`.

Usage

glm.vc(obj)

Arguments

obj

The regression output from glm().

Value

The output is a matrix.

Examples

Run this code
# NOT RUN {
data(campaign)
attach(campaign)
cmpgn.out <- glm(TOTCONTR ~ CANDGENDER + PARTY + INCUMCHALL + HISPPCT,
              family=Gamma(link = 'log'), data=campaign)
glm.vc(cmpgn.out)

# }

Run the code above in your browser using DataLab