lin | R Documentation |
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.
## Linear smooth constructor.
lin(...)
## For mgcv.
## S3 method for class 'linear.smooth.spec'
smooth.construct(object, data, knots, ...)
... |
For function |
object , data , knots |
See |
Function lin()
, similar to function s
a simple smooth specification
object.
bamlss
, predict.bamlss
, bfit
, boost
## 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)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.