ModelCreator {ImputeRobust} | R Documentation |
Model creator
Description
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.
Usage
ModelCreator(data, gam.model, lin.terms = NULL)
Arguments
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. |
Value
Returns a formula object.
[Package ImputeRobust version 1.3-1 Index]