Last data update: 2014.03.03

R: graphical output for a 'mht' or 'mht.order' object
plotR Documentation

graphical output for a mht or mht.order object

Description

Graphical output for a mht or mht.order object. Four plots (selectable by which.plot) are currently available: a plot of the fitted values against the true values, a plot of the residuals against the fitted values, a Normal Q-Q plot, and a barplot showing the coefficients.

Usage

## S3 method for class 'mht'
plot(x,which.plot=1:4,...)
## S3 method for class 'mht.order'
plot(x,which.plot=1:4,...)

Arguments

x

Object of class "mht" as obtained from mht or "mht.order" as obtained from mht.order.

which.plot

if a subset of the plots is required, specify a subset of the numbers 1:4.

...

not used.

Details

The four plots are shown for each level alpha of the mht or mht.order object.

For the Normal Q-Q plot, the standardized residuals are used. They are calculated as R[i]/sqrt(var(R)).

See Also

mht, mht.order

Examples

## Not run: 
x=matrix(rnorm(100*20),100,20)
beta=c(rep(2,5),rep(0,15))
y=x%*%beta+rnorm(100)

# mht
mod=mht(x,y,alpha=c(0.1,0.05),maxordre=15)
plot(mod)

# mht.order
mod.order=mht.order(x,y,ordre=5:1,alpha=c(0.1,0.05))
plot(mod.order)

## End(Not run)

Results