anova.rq(object, ...)
anova.rqlist(object, ..., test = "Wald", score = "tau")
rq.test.rank
function, see ranks
for further details on the score function
options.The Wald form of the test is local in sense that the null hypothesis asserts only that a subset of the covariates are ``insignificant'' at the specified quantile of interest. The rank form of the test can also be used to test the global hypothesis that a subset is ``insignificant'' over an entire range of quantiles. The use of the score function score = "tau" restricts the rank test to the local hypothesis of the Wald test.
In the second form of the test the linear predictor of the fits are all the same, but the specified quantiles (taus) are different. In this case the hypothesis of interest is that the slope coefficients of the models are identical. The test statistic is a variant of the Wald test described in Koenker and Bassett (1982).
By default, the tests return an F-like statistic in the sense that the an asymptotically Chi-squared statistic is divided by its degrees of freedom and the reported p-value is computed for an F statistic based on the numerator degrees of freedom equal to the rank of the null hypothesis and the denominator degrees of freedom is taken to be the sample size minus the number of parameters of the maintained model.
[2] Koenker, R. W. and Bassett, G. W. (1982). Robust Tests for Heteroscedasticity based on Regression Quantiles, Econometrica, 50, 43--61. [3] Gutenbrunner, C., Jureckova, J., Koenker, R, and S. Portnoy (1993). Tests of Linear Hypotheses based on Regression Rank Scores, J. of Nonparametric Statistics, 2, 307--331.
rq
,
and the functions for testing hypothesis on the entire quantile
regression process khmaladze.test
. For further details
on the rank tests see ranks
.data(barro)
fit0 <- rq(y.net ~ lgdp2 + fse2 + gedy2 , data = barro)
fit1 <- rq(y.net ~ lgdp2 + fse2 + gedy2 + Iy2 + gcony2, data = barro)
fit2 <- rq(y.net ~ lgdp2 + fse2 + gedy2 + Iy2 + gcony2, data = barro,tau=.75)
fit3 <- rq(y.net ~ lgdp2 + fse2 + gedy2 + Iy2 + gcony2, data = barro,tau=.25)
anova(fit1,fit0)
anova(fit1,fit2,fit3)
Run the code above in your browser using DataLab