Learn R Programming

robcbi (version 1.1-3)

correl: Generic functions for objects of classes "glm" and "cubinf"

Description

Correlation and covariance matrix of the parameter estimates, rank, scale estimate, and weights.

Usage

correl(object, tl = 1e-10)

covar(object) Rank(object)

rscale(object)

weights(object)

Arguments

object

An object inheriting from class "glm" or "cubinf".

tl

Tolerance for a scale factor (denominator) close to zero.

Details

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

See Also

The model fitting function glm

Examples

Run this code
 library(robcbi)
 data(Finney)
 Vol <- Finney$Vol; Rate <- Finney$Rate; Resp <- Finney$Resp
 lVol <-log(Vol); lRate <- log(Rate)
 z.cub <- glm(Resp~lVol+lRate,family=binomial,method="cubinf", ufact=3.2)
 correl(z.cub)
 covar(z.cub)
 Rank(z.cub)
 rscale(z.cub)
 weights(z.cub)

Run the code above in your browser using DataLab