Learn R Programming

robcbi (version 1.1-2)

glm.summaries: Accessor functions for objects the class "glm"

Description

Covariance matrix of the coefficient estimates, rank, scale estimate and the weights for class "glm" objects. All these functions are methods.

Usage

# S3 method for glm
covar(object)
 
# S3 method for glm
Rank(object)
 
# S3 method for glm
rscale(object)
 
# S3 method for glm
weights(object)

Arguments

object

An object inheriting from class "glm".

Details

The generic accessor functions coef, residuals, fitted, formula, deviance, rscale, covar, correl, weights and Rank can be used to extract elements from an object returned by glm.

See Also

The model fitting function glm

Examples

Run this code
# NOT RUN {
 library(robcbi)
 data(Finney)
 Vol <- Finney$Vol; Rate <- Finney$Rate; Resp <- Finney$Resp
 lVol <-log(Vol); lRate <- log(Rate)
 z.glm <- glm(Resp~lVol+lRate,family=binomial)
 summary(z.glm)
 covar(z.glm)
 Rank(z.glm)
 rscale(z.glm)
 weights(z.glm)
# }

Run the code above in your browser using DataLab