dep.glm {asuR}R Documentation

deviance residuals vs. linear predictor plot

Description

Plots the deviance residuals versus the linear predictor (eta).

Usage

## S3 method for class 'glm':
dep(mymodel, id = c("all", "none"), ...)

Arguments

mymodel an object of class glm, usually, a result of a call to the function glm.
id a character string; in which panel should it be possible to interactively identify points
... further arguments

Details

***expected pattern:
random scatter in a horizontal band

***Questions:
A) is the relationship linear? otherwise:
1. change the choice of predictors
2. change the transformations of the predictor
3. change the link function (but there are only few choices...)
4. do not transform the response in glm since this would change the distribution of the response (you would do this in a lm)
B) is the variance constant? otherwise:
1. change the variance function
2. use weights if you identify some features of the data that suggest a suitable choice

Value

A plot and for the user identified points an invisible vector of row indices (corresponding to the original data).

Author(s)

thomas.fabbro@unibas.ch

See Also

inspect

Examples

##

[Package asuR version 0.08-24 Index]