smooth.construct.sr.smooth.spec | R Documentation |
This smooth constructor implements the random effects representation of a P-spline.
## S3 method for class 'sr.smooth.spec'
smooth.construct(object, data, knots, ...)
object , data , knots |
See |
... |
Currently not used. |
See smooth.construct
bamlss
, predict.bamlss
, opt_bfit
, opt_boost
## Not run: ## Simulate data.
set.seed(123)
d <- GAMart()
## Estimate model.
f <- num ~ x1 + x2 + x3 + s2(x1,bs="sr") + s2(x2,bs="sr") + s2(x3,bs="sr")
b <- bamlss(f, data = d, optimizer = boost, sampler = FALSE)
plot(b)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.