Learn R Programming

quantreg (version 4.77)

rq.object: Linear Quantile Regression Object

Description

These are objects of class "rq". They represent the fit of a linear conditional quantile function model.

Arguments

Generation

This class of objects is returned from the rq function to represent a fitted linear quantile regression model.

Methods

The "rq" class of objects has methods for the following generic functions: coef, effects , formula , labels , model.frame , model.matrix , plot , logLik , AIC , extractAIC , predict , print , print.summary , residuals , summary

Details

The coefficients, residuals, and effects may be extracted by the generic functions of the same name, rather than by the $ operator. For pure rq objects this is less critical than for some of the inheritor classes. In particular, for fitted rq objects using "lasso" and "scad" penalties, logLik and AIC functions compute degrees of freedom of the fitted model as the number of estimated parameters whose absolute value exceeds a threshold edfThresh. By default this threshold is 0.0001, but this can be passed via the AIC function if this value is deemed unsatisfactory. The function AIC is a generic function in R, with parameter k that controls the form of the penalty: the default value of k is 2 which yields the classical Akaike form of the penalty, while k <= 0<="" code=""> yields the Schwarz (BIC) form of the penalty. Note that the extractor function coef returns a vector with missing values omitted.

See Also

rq, coefficients.