drqssbc2(x, y, w = rep.int(1,n), pw, knots, degree, Tlambda, constraint, ptConstr, maxiter = 100, trace = 0, nrq = length(x), nl1, neqc, niqc, nvar, tau = 0.5, select.lambda, give.pseudo.x = FALSE, rq.tol = 1e-8 * sc.y, tol.0res = 1e-6, print.warn = TRUE, rq.print.warn = FALSE)
x
, the observations.x
, as in
cobs
.l1.design2
or
loo.design2
. FIXME: This is currently unused.cobs
(but cannot be abbreviated here).list
of pointwise constraints;
notably equal
, smaller
, greater
and gradient
are 3-column matrices specifying the respective constraints. May have
0 rows if there are no constraints of the corresponding kind.constraint
.Tlambda
.rq.fit.sfnc()
or
rq.fit.sfn()
. Note that (for scale
invariance) this has to be in units of y
, which the default
makes use of.rq.*
function calls, see below.cobs
, possibly
interesting on its own. Depending on degree
, either
l1.design2
or loo.design2
are
called for construction of the sparse design matrix. Subsequently, either rq.fit.sfnc
or
rq.fit.sfn
is called as the main work horse.
This documentation is currently sparse; read the source code!
cobs
and its auxiliary
qbsks2
which calls drqssbc2()
repeatedly. l1.design2
and loo.design2
;
further rq.fit.sfnc
and
rq.fit.sfn
from package quantreg.
set.seed(1243)
x <- 1:32
fx <- (x-5)*(x-15)^2*(x-21)
y <- fx + round(rnorm(x,s = 0.25),2)
Run the code above in your browser using DataLab