GOFTest.Rd
This function calculates a goodness-of-fit test for quantile regression models.
GOFTest(object, type = "cusum", alpha = 0.05, B = 100, seed = NULL)
an object of class
"rq","rqs", "rqt", "rrq", or "rq.counts".
the type of the test. See details.
the significance level for the test. This argument is relevant for type = "cusum"
only.
the number of Monte Carlo samples. This argument is relevant for type = "cusum"
only.
see for random numbers. This argument is relevant for type = "cusum"
only.
This function provides goodness-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.
GOFTest
returns an object of class
GOFtest
.
He XM, Zhu LX. A lack-of-fit test for quantile regression. Journal of the American Statistical Association (2003);98:1013-1022.