predictors: Extract predictor and smooth names

Description Usage Arguments Value Examples

View source: R/api.R

Description

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.

Usage

1
2
predictors(model)
smooths(model, predictor)

Arguments

model

An API-enabled bamlss model.

predictor

A string containing the name of one predictor in the model.

Value

A character vector containing either the names of the predictors or the names of the smooths.

Examples

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])

hriebl/bamlssAPI documentation built on May 3, 2020, 6:58 p.m.