Extract various types of residuals from unit quantile regression models.
Arguments
- object
fitted model object of class
unitquantreg
.- type
character indicating type of residuals. The options are
"quantile"
,"cox-snell"
,"working"
and"partial"
.- ...
currently not used.
Value
Numeric vector of residuals extract from an object of class
unitquantreg
.
Details
The residuals
method can compute quantile
and Cox-Snell residuals. These residuals are defined, respectively, by
rQ=Φ−1[F(yi∣ˆμi,ˆθi)]
and
rCS=−log[1−F(yi∣ˆμi,ˆθi)] where ˆμi and ˆθi are the fitted values of parameters μ and θ, F(⋅∣⋅,⋅) is the cumulative distribution function (c.d.f.) and Φ(⋅) is the c.d.f. of standard Normal distribution.
Apart from the variability due the estimates of parameters,if the fitted regression model is correctly specified then the quantile residuals, rQ, follow a standard Normal distribution and the Cox-Snell residuals, rCS, follow a standard exponential distribution.