methods-predictor: Retrieve Prediction Method

Description Usage Arguments Value Author(s) Examples

Description

Retrieve the prediction method from an object of class modelObj. This capability is intended for package developers making use of the “model object" framework.

Usage

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

Arguments

object

an object of class modelObj.

...

ignored.

Value

Returns an object of class "character"; the name of the prediction method specified in the modelObj object.

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'))

    predictor(mo)

modelObj documentation built on May 2, 2019, 5:20 p.m.