gamlss: data.frame-first formula-second method for 'gamlss'

Description Usage Arguments Details See Also Examples

Description

This function passes a data.frame, formula, and additional arguments to gamlss.

Usage

1
2
3
4
gamlss(data, formula, ...)

## S3 method for class 'gamlss'
predict(object, data, ...)

Arguments

data

Data frame (or object that can be coerced to one) containing the variables in the model

formula

formula (or object that can be coerced to one) describing the model to be fitted

...

Additional arguments to pass to model function

object

Fitted model

Details

This function attaches the training data to the generated model, because the default gamlss.predict() function requires access to the original data in order to make predictions. Please be aware that memory issues can arise when working with large data sets and or when generating a large number of models.

See Also

gamlss

Examples

1
2
3
fit <- gamlss(mtcars, vs ~ hp + wt, family = "BI")
summary(fit)
predict(fit, mtcars)

drsimonj/twidlr documentation built on May 15, 2019, 2:53 p.m.