Lack-of-Fit Tests for Quantile Regression Models
LOFTest.RdThis function calculates a lack-of-fit test for quantile regression models.
Arguments
- object
an object of
class"rq","rqs", "rqt", "rrq", or "rq.counts".- type
the type of the test. See details.
- alpha
the significance level for the test. This argument is relevant for
type = "cusum"only.- B
the number of Monte Carlo samples. This argument is relevant for
type = "cusum"only.- seed
see for random numbers. This argument is relevant for
type = "cusum"only.
Details
This function provides lack-of-fit tests for quantile regression. Currently, there is only one method available (type = "cusum"), for a test based on the cusum process of the gradient vector (He and Zhu, 2013). The critical value at level alpha is obtained by resampling. Other methods will be implemented in future versions of the package.
The function GOFtest (goodness-of-fit) is an alias and is kept for backward compatibility.
Value
LOFTest returns an object of class LOFtest.