plot {mht} | R Documentation |
mht
or mht.order
objectGraphical 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.
## S3 method for class 'mht' plot(x,which.plot=1:4,...) ## S3 method for class 'mht.order' plot(x,which.plot=1:4,...)
x |
Object of class "mht" as obtained from |
which.plot |
if a subset of the plots is required, specify a subset of the numbers 1:4. |
... |
not used. |
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)).
## 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)