methods-solverArgs_-: Reset Arguments for Regression Method

Description Usage Arguments Details Value Author(s) Examples

Description

Reset the arguments to be sent to the regression method. This capability is intended for package developers making use of the “model object" framework.

Usage

1
2
 ## S4 replacement method for signature 'modelObj'
solverArgs(object) <- value

Arguments

object

object of class modelObj, for which the arguments sent to the regression method are to be reset.

value

A named list containing the new arguments to be sent to the regression method.

Details

The first two elements of the list contain the name for the formula object and the name for the data.frame. buildModelObj creates modelObj using an internal convention, which is critical to the correct implementation of this package. These two elements should not be changed and will be carried over from the original argument list.

Value

modelObj is updated with new argument list.

Author(s)

Shannon T. Holloway <sthollow@ncsu.edu>

Examples

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

    solverArgs(mo)
    argList <- list("x"=TRUE)
    solverArgs(mo) <- argList
    solverArgs(mo)

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