Compute B-spline coefficients for regression quantile B-spline with stepwise knots selection and quantile B-spline with fixed knots regression spline, using Ng (1996)'s algorithm.
qbsks2(x,y,w,pw, knots,nknots, degree,Tlambda, constraint, ptConstr,
maxiter, trace, nrq,nl1, neqc, tau, select.lambda,
ks, do.select, knots.add, repeat.delete.add, ic, print.mesg,
give.pseudo.x = TRUE,
rq.tol = 1e-8, tol.kn = 1e-6, tol.0res = 1e-6, print.warn, nk.start)
a list with components
..
..
dimensionality of model fit.
integer ``flag''; the return code.
integer of length 2, see cobs
.
the vector of inner knots.
the number of inner knots.
the number of ``variables'', i.e. unknowns including constraints.
the penalty factor, chosen or given.
the pseudo design matrix \(X\), as returned from
drqssbc2
.
numeric vector, sorted increasingly, the abscissa values
numeric, same length as x
, the observations.
numeric vector of weights, same length as x
, as in
cobs
.
penalty weights vector ... ...
numeric vector of knots of which nknots
will be used.
number of knots
to be used.
integer specifying polynomial degree; must be 1 or 2.
(vector of) smoothing parameter(s) \(\lambda\), see
drqssbc2
.
string (or empty) specifying the global constraints;
see cobs
.
list
of pointwise constraints.
non-negative integer: maximal number of iterations,
passed to drqssbc2
.
integer or logical indicating the tracing level of the underlying algorithms; not implemented (due to lack of trace in quantreg ...)
integers specifying dimensionalities, directly
passed to drqssbc2
, see there.
desired quantile level (in interval \((0,1)\)).
passed to drqssbc2
, see there.
number used as offset in SIC/AIC/BIC.
logical indicating if knots shall be selected (instead of used as specified).
logicals, see cobs
.
information criterion to use, see cobs
.
an integer indicating how qbsks2()
should
print message about its current stages.
logical indicating if the pseudo design matrix \(\tilde{X}\) should be returned (as sparse matrix).
numeric convergence tolerance for the interior point
algorithm called from rq.fit.sfnc()
or
rq.fit.sfn()
.
“tolerance” for shifting the outer knots.
tolerance passed to drqssbc2
.
flag indicating if and how much warnings and
information is to be printed; currently just passed to
drqssbc2
.
number of starting knots used in automatic knot selection.
Pin Ng; this help page: Martin Maechler.
This is an auxiliary function for cobs(*, lambda = 0)
,
possibly interesting on its own. This documentation is currently sparse; read
the source code!
Ng, P. (1996) An Algorithm for Quantile Smoothing Splines, Computational Statistics & Data Analysis 22, 99--118.
See also the references in cobs
.
the main function cobs
; further
drqssbc2
which is called from qbsks2()
.