gbootstrap {quantreg.nonpar} | R Documentation |
Gradient Bootstrap Inference for NPQR
Description
A method for the generic function npqr
. It computes, via a gradient bootstrap method, the t-statistic used to conduct inference in nonparametric series quantile regression models, as well as outputting confidence intervals and hypothesis test p-values at a user-specified level.
Usage
gbootstrap(data = data, B = B, taus, formula, basis = NULL, alpha = 0.05,
var, load, rearrange=F, rearrange.vars="quantile", uniform=F,
average=T, nderivs=1, method = "fn")
Arguments
data |
a data.frame in which to interpret the variables named in the |
B |
the number of bootstrap repetitions to be performed. |
taus |
a numerical vector, whose entries are strictly between 0 and 1, containing the quantile indexes of interest. |
formula |
a formula object, with the response Y on the left of a ~ operator, and the covariate terms, separated by + operators on the right, not including the regressor whose effect is to be estimated nonparametrically. Operators such as '*', ':', 'log()', and 'I()' are allowable. However, factor variables should be constructed prior to entry in the formula: the 'factor()' operator is not allowable. |
basis |
either a basis generated using the |
alpha |
a real number between 0 and 1: the desired significance level (e.g., 0.05). |
var |
a column name within |
load |
optional manual input of loading vector (or matrix of loading vectors) that will be used as data points at which inference will be performed and over which hypothesis tests will be conducted. Each vector of |
rearrange |
a boolean specifiying whether estimates will be monotonized prior to performing inference (requires that |
rearrange.vars |
if |
uniform |
a boolean specifying whether inference will be uniform across observations and quantiles or done in a pointwise manner. |
average |
if |
nderivs |
the number of derivatives of the conditional quantile function upon which inference should be performed. |
method |
method to be implemented in quantile regressions: passed to function |
Value
gbootstrap
returns a list containing the following elements:
qfits |
a list whose length is equal to the length of |
point.est |
a matrix containing the point estimates of interest (e.g., the average derivative of the function) for each pair of loading vectors and |
var.unique |
a vector containing all values of the covariate of interest with no repeated values. |
CI |
an array containing the two-sided confidence interval for each pair of loading vectors and |
CI.oneSided |
an array containing the one-sided confidence bounds for each pair of loading vectors and |
std.error |
a matrix containing estimated standard errors for the quantile regression point estimates for each pair of loading vectors and |
pvalues |
a vector containing the p-values for hypothesis tests of three null hypotheses. First, that theta(tau,w) <= 0 for all (tau,w) pairs, where theta is the quantity of interest (e.g., the derivative of the function at each quantile and at each observation). Second, that theta(tau,w) >= 0 for all (tau,w) pairs. Third, that theta(tau,w) = 0 for all (tau,w) pairs. |
load |
the loading vector or matrix of loading vectors used as data points at which inference was performed and over which hypothesis tests were conducted. If |
Author(s)
Michael Lipsitz, Alexandre Belloni, Victor Chernozhukov, Ivan Fernandez-Val
References
Belloni, A., Chernozhukov, V., and I. Fernandez-Val (2011), "Conditional quantile processes based on series or many regressors," arXiv:1105.6154.