Learn R Programming

gensemble (version 1.0.1)

ab.create: Create an Abstract Model instance

Description

This function provides a wrapper around instantiating an object of class AbstractModel-class.

Please see the documentation for AbstractModel-class for example usage.

Usage

ab.create(model.call, model.args = list(), predict.args = list(), formula = NA, ...)

Arguments

model.call

The name of the model function as a string.

model.args

A named list of arguments. If used with gensemble please note classification requires a probability matrix to be returned.

predict.args

A named list of arguments to be passed to the predict method for the model selected.

formula

A logical indicating if the formula method of the underlying model should be used or not. If this is NA (i.e. unspecified), ab.create will examine formals of model.call to determine if formula syntax is required.

Additional arguments to be passed to AbstractModel-class creation.

Value

Returns an object of class AbstractModel-class.

See Also

ab.model, ab.predict, AbstractModel-class, gensemble.