Learn R Programming

QCSIS (version 0.1)

qc: Quantile Correlation

Description

qc is used to compute the quantile correlation with given quantiles.

Usage

qc(x, y, tau)

Arguments

x
The covariate variable.
y
The response variable.
tau
The quantile(s) to be estimated.

Value

tau
The quantile(s).
rho
The value of quantile correlation.

References

Li et al.. Quantile correlations and quantile autoregressive modeling. Journal of the American Statistical Association,2015,110(509):246--261.

Examples

Run this code
n   <- 1000
x   <- rnorm(n)
y   <- 2 * x + rt(n,df = 1)
tau <- 1:9 / 10
qc(x = x, y = y, tau = tau)

Run the code above in your browser using DataLab