cqs {quantdr}R Documentation

Central quantile subspace

Description

cqs estimates the directions of the central quantile subspace.

Usage

cqs(x, y, tau = 0.5, dtau = NULL)

Arguments

x

A design matrix (n x p). The rows represent observations and the columns represent predictor variables.

y

A vector of the response variable.

tau

A quantile level, a number strictly between 0 and 1.

dtau

An optional dimension of the central quantile subspace. If specified, it should be an integer between 1 and p, the number of columns of the design matrix x. In the context of the algorithm, if dtau is known to be one, i.e., the assumed model is a single-index model, then the algorithm stops after estimating the initial vector and saves computational time. However, if dtau is greater than one or (more realistically) unknown, then the algorithm continues on creating more vectors.

Details

The function computes the directions that span the \tauth central quantile subspace, i.e., the directions that define linear combinations of the predictor x that contain all the information available on the conditional quantile function.

The function starts by estimating the initial vector, which is defined as the least-squares estimator from regressing the conditional quantile on the predictor variable x. Then, if the dimension of the central quantile subspace is one, the algorithm stops and reports that vector as the basis of the central quantile subspace. Otherwise, the algorithm continues by creating more vectors and applying an eigenvalue decomposition to extract linearly independent vectors.

Value

cqs computes the directions of the central quantile subspace and returns:

References

Zhu, L.-P., Zhu, L.-X., Feng, Z.-H. (2010) Dimension reduction in regression through cumulative slicing estimation. Journal of the American Statistical Association, 105, 1455-1466.

Examples

# estimate the directions of a single-index model
set.seed(1234)
n <- 100
p <- 10
x <- matrix(rnorm(n * p), n, p)
error <- rnorm(n)
y <- 3 * x[, 1] + x[, 2] + error
tau <- 0.5
out <- cqs(x, y, tau, dtau = 1)
out
# without specifying dtau
out <- cqs(x, y, tau)
out
out$qvectors[, 1:out$dtau]


[Package quantdr version 1.2.2 Index]