apify: Enable API for a bamlss model

Description Usage Arguments Value Examples

View source: R/api.R

Description

This function enables the API for the given bamlss model. Afterwards, you can use the functions from the bamlssAPI package with the model.

Usage

1
apify(model, propose = "iwlsC_gp")

Arguments

model

A bamlss::bamlss or bamlss::bamlss.frame object.

propose

A string containing the name of a bamlss propose function for model terms. Defaults to "iwlsC_gp". See bamlss::GMCMC().

Value

The API-enabled model.

Examples

1
2
3
4
library(bamlss)
y <- rnorm(10)
b <- bamlss(y ~ 1)
b <- apify(b)

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