VecX: The representative values for each covariate used to estimate the desired conditional quantile curves.
tau: The quantiles of interest.
times: The vector of the time variable.
subj: The vector of subjects/individuals.
X: The covariate matrix containing 1 as its first column (including intercept in the model).
y: The response vector.
d: The order of the differencing operator for each covariate.
kn: The number of knots for each covariate.
degree: The degree of the B-spline basis function for each covariate.
lambda: The grid for the smoothing parameter to control the trade of between fidelity and penalty term (use a fine grid of lambda).
gam: The power used in estimating the smooting parameter for each covariate (e.g. gam=1 or gam=0.5).
Returns
W: The weight for each subject corresponding to the length of its repeated measurement
alpha: The estimators of the coefficient vector of the basis B-splines.
hat_bt0: The baseline estimators.
hat_btk: The varying coefficient estimators.
qhat_h: The estimators of the τh-th conditional quantile curves.
Wtau: The weight of each order of quantile τh.
References
Andriyana, Y., Gijbels, I., and Verhasselt, A. P-splines quantile regression estimation in varying coefficient models. Test 23, 1 (2014a),153--194.
Andriyana, Y., Gijbels, I. and Verhasselt, A. (2014b). Quantile regression in varying coefficient models: non-crossingness and heteroscedasticity. Manuscript.
Author(s)
Yudhie Andriyana
Note
Some warning messages are related to the function rq.fit.sfn.