This function provides a wrapper around instantiating an object of class AbstractModel-class
.
Please see the documentation for AbstractModel-class
for example usage.
ab.create(model.call, model.args = list(), predict.args = list(), formula = NA, ...)
The name of the model function as a string.
A named list of arguments. If used with gensemble
please note classification requires a probability matrix to be returned.
A named list of arguments to be passed to the predict method for the model selected.
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.
Returns an object of class AbstractModel-class
.