OutcomeObj-methods: Methods Available for Objects of Class 'OutcomeObj'

OutcomeObj-methodsR Documentation

Methods Available for Objects of Class OutcomeObj

Description

Most value objects returned are a list with one element 'outcome'. Methods dispatched and objects returned in the element 'outcome' depend on class of @outcome. Exceptions are noted below.

outcome(object) does not return the overarching list structure, but only the contents of list[[ outcome ]].

plot(x) concatenated 'outcome' to the title if suppress = FALSE.

.predictAll(object, newdata) does not return the overarching list structure, but only the contents of list[[ outcome ]].

.predictMu(object, newdata) predicts outcome for all tx options. Returns the matrix of outcomes predicted for all tx. Predicted outcomes for tx not available to a pt are NA.

predict(object) does not return the overarching list structure, but only the contents of list[[ outcome ]].

Usage

## S4 method for signature 'OutcomeObj'
coef(object, ...)

## S4 method for signature 'OutcomeObj'
fitObject(object, ...)

## S4 method for signature 'OutcomeObj'
outcome(object, ...)

## S4 method for signature 'OutcomeObj,ANY'
plot(x, suppress = FALSE, ...)

## S4 method for signature 'OutcomeObj,data.frame'
.predictAll(object, newdata, ...)

## S4 method for signature 'OutcomeObj,data.frame'
.predictMu(object, data, ...)

## S4 method for signature 'OutcomeObj'
predict(object, ...)

## S4 method for signature 'OutcomeObj'
print(x, ...)

## S4 method for signature 'OutcomeObj'
show(object)

## S4 method for signature 'OutcomeObj'
summary(object, ...)

DynTxRegime documentation built on Nov. 25, 2023, 1:09 a.m.