Learn R Programming

DynTxRegime (version 3.01)

ModelObjSubset-class: Class

Description

Class created by call to buildModelObjSubset() to specify a modelObj for a specific subset and decision point.

Arguments

Objects from the Class

Objects can be created by calls of the form new("ModelObjSubset", ...). These objects are created by the user through buildModelObjSubset() See ?buildModelObjSubset for details.

Slots

decisionPoint:
An object of class "integer."

The decision point for which this model is defined.

subset:
An object of class "character."

The subset for which this model is defined. Note that if more than one subset, the names should be collapsed with a comma separator ("a" and "b" = "a,b")

modelObj:
An object of class "modelObj."

The model object to be used for the specified subset and decision point.

Methods

.getDecisionPoint
signature(object = "ModelObjSubset"): Retrieve decision point. Not exported.

.getSubset
signature(object = "ModelObjSubset"): Retrieve subset nickname. Not exported.

.getModelObj
signature(object = "ModelObjSubset"): Retrieve modeling object. Not exported.

Examples

Run this code
showClass("ModelObjSubset")

subsetModel <- buildModelObjSubset(model  = ~ x1, 
                                   solver.method = 'lm', 
                                   subset = 'example', 
                                   dp = 1)

DynTxRegime:::.getDecisionPoint(subsetModel)
DynTxRegime:::.getSubset(subsetModel)
DynTxRegime:::.getModelObj(subsetModel)

Run the code above in your browser using DataLab