Learn R Programming

DynTxRegime (version 3.01)

TxSubset-class: Class

Description

Stores basic treatment information for a single decision point when subsets have been identified.

Arguments

Objects from the Class

A virtual Class: no object may be created from it.

Slots

ptsSubset:
An object of class "character." A vector of subset names indicating the subset to which each patient belongs.

subsetRule:
An object of class "function." A function defining how treatment subsets are determined (from input fSet)

subsets:
An object of class "list." A list of treatment subset names and their available treatment options.

singleton:
An object of class "logical." A vector indicating of only a single treatment is available to each patient.

Methods

.getPtsSubset
signature(object = "TxSubset"): Retrieve patient subset identities.

.getSingleton
signature(object = "TxSubset"): Retrieve singleton vector.

.getSubsetRule
signature(object = "TxSubset"): Return function that defines subset rules.

.getSubsets
signature(object = "TxSubset"): Retrieve list of subset names and treatment options.

.validTx
signature(object = "TxSubset", txVec = "ANY"): Ensure that all elements of txVec are present in the superset of treatment options. Method is not exported.

Examples

Run this code
showClass("TxSubset")

Run the code above in your browser using DataLab