response_name: Extract the reponse name of a 'bamlss.frame' object.

View source: R/BAMLSS.R

response_nameR Documentation

Extract the reponse name of a bamlss.frame object.

Description

This is a small helper function to quickly extract the response name(s) of an object of class "bamlss.frame" or "bamlss".

Usage

response_name(object, ...)

Arguments

object

An object of class "bamlss.frame" or "bamlss".

...

Not used.

See Also

bamlss, bamlss.frame

Examples

## Simulate some data.
d <- GAMart()

## Create a bamlss.frame.
bf <- bamlss.frame(num ~ s(x1) + s(x2) + s(x3), data = d)

## Extract the response name.
response_name(bf)

bamlss documentation built on Oct. 11, 2024, 5:07 p.m.