Description Usage Arguments Value Examples
The predictors
function extracts the names of the predictors from the
given bamlss model, while the smooths
function returns the names of the
smooths in one predictor.
1 2 | predictors(model)
smooths(model, predictor)
|
model |
An API-enabled bamlss model. |
predictor |
A string containing the name of one predictor in the model. |
A character vector containing either the names of the predictors or the names of the smooths.
1 2 3 4 5 6 | library(bamlss)
y <- rnorm(10)
b <- bamlss(y ~ 1)
b <- apify(b)
predictors(b)
smooths(b, predictor = predictors(b)[1])
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.