gam
, "cr"
basis: that is the spline has a set of knots,
which have fixed x values, but the y values of which constitute the
parameters of the spline.mono.con(x,up=TRUE,lower=NA,upper=NA)
TRUE
then the constraints imply increase, if
FALSE
then decrease.NA
in which case no lower bound is imposed.NA
in which case no upper bound is imposed.A
and constraint vector b
.Wood, S.N. (1994) Monotonic smoothing splines fitted by cross validation. SIAM Journal on Scientific Computing 15(5), 1126--1133.
mgcv
, pcls