Learn R Programming

quantreg (version 3.03)

plot.khmal: Plots Standardized and Khmaladzized Residual Processes

Description

The function makes 6 arrays of p plots based on the object of class "khmal" created by `rq.test.khmal' of quantile regression results. The 6 arrays are: (i) estimated coefficients; (ii) regression of slopes on the intercept; (iii) standardized residuals for the joint; (iv) standardized residuals for the coef by coef; (v) khmaladzized residuals for the joint, and (vi) khmaladzized residuals for the coef by coef hypothesis testing.

Usage

plot.khmal(khmal.out, var.list = khmal.out$var.list, 
	nrow= ceiling(length(var.list)/2), ncol= 2, plotn = 1:6, 
	color="gray", ...)

Arguments

khmal.out
output of `rq.test.khmal'. plot.khmal() requires the output of `rq.test.khmal'.
var.list
numerical list of variables to be plotted. By default all variables are plotted. A restricted set of variables can be specified by providing a numerical vector indicating the desired variables. The convention is that 1 corresponds to the intercept, 2 t
nrow
number of rows per page of plots. Automatically set by assuming that the number of columns is 2.
ncol
number of plots per page of plots. Default 2.
plotn
a numerical vector indicating which array of plots will be graphed. By default the 6 arrays described in `Description' are plotted. Useful to produce individual postscript files of each array. For example, specifying plotn = 1 in conjunction will postscr
...
Other optional arguments passed to `plot'.

Value

  • Generates plots of object of class `khmal'. Please refer to "Description" for further details.

References

Koenker, Roger and Zhijie Xiao (2000), "Inference on the Quantile Regression Process'', unpublished. http://www.econ.uiuc.edu/~roger/research/inference/inference.html

Examples

Run this code
data(barro)
fit.Lonly _ rq.test.khmal(y.net ~  lgdp2 + fse2 + gedy2 + Iy2 + gcony2, 
data = barro, location.scale = FALSE)
par(ask=interactive())
plot(fit.Lonly, var.list=c(2,4))

Run the code above in your browser using DataLab