Create an object useful to present the potential outcomes under each treatment arm for each principal stratum. Contrasts between treatment arms or principal strata are easy to obtain from this object.
PSOutcome(PStrataObj, type = c("probability", "RACE"))
An S3 object of type PSOutcome
, containing
A num_strata * num_treatment * num_iter array of mean outcome if the outcome type is non-survival or a num_strata * num_treatment * num_time_points * num_iter array of mean outcome if the outcome type is survival.
A boolean value, whether the outcome type is survival.
The time points at which the outcome is evaluated, if the outcome type is survival.
The S3 method summary
and plot
can be applied to the returned object.
an object of class PStrata
or PStrata_survival
whether the causal estimand is survival probability or RACE, ignored for non-survival outcomes.