varCheck: Checking adequacy of variance function

Description Usage Arguments Author(s) Examples

View source: R/varCheck.R

Description

If variance function is right then the relationship between squared Pearson residuals and fitted values should be linear; otherwise it means that the chosen variance function increases more (or less) quickly than mu. Hence this plot suggests the direction of the error made by chosing the variance function.

Usage

1
varCheck(model, xlab, ylab, pch, ...)

Arguments

model

a model supported by glmdiag.

xlab

title for the x axis.

ylab

title for the y axis.

pch

type of points.

...

further arguments passed to plot

Author(s)

Giuseppe Reale

Examples

1
2
3
data(stopping, package = 'glmdiag')
mod <- glm(Distance ~ Speed, family = Gamma(link = 'sqrt'), data = stopping)
varCheck(mod)

reealpeppe/glmdiag documentation built on Dec. 22, 2021, 2:06 p.m.