## S3 method for class 'rq':
summary(object, se = NULL, covariance=FALSE, hs = TRUE, ...)
## S3 method for class 'rqs':
summary(object, ...)
"rq"
or "rqs"
produced by
a call to rq()
, depending on whether one or more taus are
specified."rank"
which produces confidence intervals for the
estimated parameters by inverting a rank test as described iboot.rq
object
is of class "rqs"
then there is a list of such lists.cov=TRUE
in the called sequence.cov=TRUE
and
se %in% c("nid","ker")
, note that for se = "boot"
there
is no way to split the estimated covariance matrix into its sandwich
constituent parts.cov=TRUE
and se
!= "iid"
. The Huber sandwich is cov = tau (1-tau) Hinv %*% J %*% Hinv
.
as for the Hinv
component, there is no J
component when
se == "boot"
. (Note that to make the Huber sandwich you need to add the
tau (1-tau) mayonnaise yourself.)se
method is rank, unless the sample size exceeds
1001, in which case the rank
method is used.Bilias, Y. Chen, S. and Z. Ying, Simple resampling methods for censored quantile regression, J. of Econometrics, 99, 373-386.
rq
bandwidth.rq
data(stackloss)
y <- stack.loss
x <- stack.x
summary(rq(y ~ x, method="fn")) # Compute se's for fit using "nid" method.
summary(rq(y ~ x, ci=FALSE),se="ker")
# default "br" alg, and compute kernel method se's
Run the code above in your browser using DataLab