Learn R Programming

twidlr (version 0.0.0.9000)

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

Description

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

Usage

gamlss(data, formula, ...)

# S3 method for 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

Run this code
fit <- gamlss(mtcars, vs ~ hp + wt, family = "BI")
summary(fit)
predict(fit, mtcars)

Run the code above in your browser using DataLab