lin

0th

Percentile

Linear Effects for BAMLSS

This smooth constructor implements simple linear effects. The columns of the design matrix are automatically scaled. The main advantage of this constructor is speed when used in the BAMLSS boosting algorithm boost. Optionally, a ridge penalty can be added, please see the example.

Keywords
regression
Usage
## Linear smooth constructor.
lin(...)

## For mgcv. # S3 method for linear.smooth.spec smooth.construct(object, data, knots, ...)

Arguments

For function lin() a formula of the type ~x1+x2+x3 that specifies the covariates that should be modeled.

object, data, knots

See smooth.construct.

Value

Function lin(), similar to function s a simple smooth specification object.

See Also

bamlss, predict.bamlss, bfit, boost

Aliases
  • lin
  • smooth.construct.linear.smooth.spec
Examples
# NOT RUN {
## Simulate data.
set.seed(123)
d <- GAMart()

## Estimate model.
f <- num ~ lin(~x1+x2+x3+fac,ridge=TRUE)

b <- bamlss(f, data = d)

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

Community examples

Looks like there are no examples yet.