hnp.glm {asuR}R Documentation

half normal quantiles vs. absolute studentized residuals plot

Description

In linear regression we inspect the normal quantile plot to check the normality of residuals. For generalized linear models we do not expect that the residuals are normally distributed. Nevertheless the half-normal plot can help us to find outliers. Outliers can be detected as points off the trend.

Usage

## S3 method for class 'glm':
hnp(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 or numeric value; in which panel should it be possible to interactively identify points
... further arguments

Details

***expected pattern:
all points are scattered along a line

***question: are there points of the trend? otherwise
1. Is the data point correct?

(keep attention that this is not a quantile–quantile plot where you check for normality!)

Value

A plot and a vector with identified values (corresponding to the row nomber in the original data).

Author(s)

thomas.fabbro@unibas.ch

See Also

inspect

Examples

#

[Package asuR version 0.08-24 Index]