Description Usage Arguments Value
View source: R/model_creator.R
This is a helper function to be used within the gamlss fitting procedure. It creates automatically a formula object for the variables named a given data frame. The dependent variable is the one in the first column and the rest are treated as independent.
1 | ModelCreator(data, gam.model, lin.terms = NULL)
|
data |
Data frame that will provide the named variables. |
gam.model |
List of mode parameter, containing the "type" with c("linear", "cs", "pb") as available choices and "par", an optional list parameter if the model is not linear. |
lin.terms |
Specify which predictors should be included linearly. For example, binary variables can be added directly as an additive term instead of defining a spline. |
Returns a formula object.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.