summary.rqcan {rqcanon} | R Documentation |
Summary of rqcan function results.
Description
Uses one of two bootstrap methods to provide Standard Error and confidence intervals for the alpha and beta coefficients for all components.
Usage
## S3 method for class 'rqcan'
summary(object, pr = TRUE, ci = 1, fact = 1, ...)
Arguments
object |
rqcan object returned by rqcan |
pr |
print tables if TRUE (default) |
ci |
type of 95
ci=1: use (adjusted) .025 and .975 percentiles of bootstrap distribution |
fact |
a factor to adjust conf ints for components 2:na; used only for development |
... |
parameters that are sent to the bootstrap function: |
Details
The Portnoy reference showed that a subsample bootstrap (as described by Andrews) gives consistent estimates of SE's and confidence intervals. The subsample size is m = ceiling( min(n, max(log(n)*(px+py+1), n^msub)) ) (where n = nrow(X), px = ncol(X), py = ncol(Y)), msub is as above). Some simulations and examples suggest that this is OK. The usual "xy" bootstrap (sampling rows independently with replacement) can be specified. It seems to give similar confidence intervals to "Andrews", but the SE estimates may be wrong; and no form of consistency has been proven. Note: as noted in help(rqcan), the quantreg function rq.fit.fnc may generate singular matrices even if the input design matrix is of full rank. In simulation examples, this can happen for some bootstrap replications (perhaps less than 1/1000 times). When this occurs, a new bootstrap replication is drawn. If more than nsing consecutive singularities are produced, the bootstrap function returns with those replications that it has already found (a number less than Rep), with a warning. If a singularity warning occurs, using "xy", or changing the seed or "jittering" the data (see jitter()) sometimes helps.
Value
Returns list(As,Bs,sdc): As and Bs are matrices with Rep rows giving alpha beta coefficients for each bootstrap replication; and sdc is a standard error adjustment based on the subsample bootstrap: sdc = sqrt(1 - m/n).