normalp (version 0.7.2)

plot.lmp: Diagnostic plots for a lmp object

Description

This function produces four plots: a plot of residuals against fitted value, a Normal Q-Q plot, an Exponential Power Distribution Q-Q plot, a Scale-Location plot, with a \(p\)-root of the standardized residuals against the fitted values.

Usage

# S3 method for lmp
plot(x, ...)

Arguments

x

A lmp object, typically result of lmp.

...

Further arguments passed to or from other methods.

Author

Angelo M. Mineo

Details

The standardized residuals in the Normal Q-Q plot are those of an object lm; in the Exponential Power distribution Q-Q plot and in the scale location plot the standardized residuals are computed as \((e_i-m_p)/(s_p)\).

Examples

Run this code
x<-1:20
z<-runif(20)
e<-rnormp(20,mu=0,sigmap=1,p=3)
y<-0.5+x+z+e
lmp.res<-lmp(y~x+z)
plot(lmp.res)

Run the code above in your browser using DataLab