Learn R Programming

DynTxRegime (version 4.15)

OutcomeObj-methods: 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 OutcomeObj
coef(object, ...)

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

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

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

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

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

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

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

# S4 method for OutcomeObj show(object)

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

Arguments