smooth.construct.ms.smooth.spec

0th

Percentile

Smooth constructor for monotonic P-splines

The function sets up a smooth term for shape constraint estimation of P-spline model terms. Note that this currently only works using boosting.

Keywords
models, regression, smooth
Usage
# S3 method for ms.smooth.spec
smooth.construct(object, data, knots, ...)
Arguments
object

Either a smooth specification object, or object of class "bamlss", "bamlss.frame", "bamlss.formula" or "bamlss.terms". For smooth specification objects, see function smooth.construct.

data

A data frame or list, see also see function smooth.construct.

knots

See function smooth.construct.

Arguments passed to the smooth term constructor functions.

Value

See function see smooth.construct.

See Also

bamlss.frame, bamlss.formula, bamlss, smooth.construct.

Aliases
  • smooth.construct.ms.smooth.spec
Examples
# NOT RUN {
## Generate some data.
d <- GAMart()

## Increasing: constr = 1.
## Decreasing: constr = 2.
b <- bamlss(num ~ s2(x1,bs="ms",xt=list(constr=2)),
  data = d, sampler = FALSE, optimizer = boost)

plot(b)
# }
Documentation reproduced from package bamlss, version 1.1-2, License: GPL-2 | GPL-3

Community examples

Looks like there are no examples yet.