ModelCreator: Model creator

Description Usage Arguments Value

View source: R/model_creator.R

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

1
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.


ImputeRobust documentation built on May 2, 2019, 3:27 a.m.