Learn R Programming

gensemble (version 1.0.1)

ab.arglist: Get the arglist for the given model

Description

Generate a list containing the arguments to be passed to the underlying model building function. Most interaction with AbstractModel-class is done via ab.create, ab.model and ab.predict, however it may be useful for debugging purposes to call this function directly.

Usage

ab.arglist(ab, X, Y)

Arguments

ab

An object of class AbstractModel-class

X

The X values. Will be passed through xtrans.

Y

The Y values. Will be passed through ytrans.

Value

Returns a list of values that will be passed to the underlying model function

Details

Both X and Y must be present. They will be passed through the xtransfrom and ytransform functions respectively, which default to a passthrough. If a formula is to be used, the X and Y data will be combined via cbind.

See Also

AbstractModel-class, gensemble.