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

glm.summariesR Documentation

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 class 'glm'
covar(object)
 
## S3 method for class 'glm'
Rank(object)
 
## S3 method for class 'glm'
rscale(object)
 
## S3 method for class '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

 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)

robcbi documentation built on Aug. 22, 2023, 1:06 a.m.