Retrieve Arguments Specified for the Prediction Method

Share:

Description

Retrieve from objects of class modelObj created by function buildModelObj the arguments that will be sent to the prediction method. This capability is intended for package developers making use of the “model object" framework.

Usage

1
2
## S4 method for signature 'modelObj'
predictorArgs(object, ...)

Arguments

object

an object of class modelObj.

...

ignored.

Value

Returns an object of class "list" containing the arguments specified to be passed to the prediction method.

Author(s)

Shannon T. Holloway <sthollow@ncsu.edu>

Examples

1
2
3
4
5
6
7
8
9
    #----------------------------------------------------#
    # Create modeling object using a formula
    #----------------------------------------------------#
    mo <- buildModelObj(model=Y ~ X1 + X2 + X3 + X4,
                        solver.method='lm', 
                        predict.method='predict.lm',
                        predict.args=list(type='response'))

    predictorArgs(mo)