PSOutcome {PStrata}R Documentation

Estimated potential outcome for principal stratification analysis

Description

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.

Usage

PSOutcome(PStrataObj, type = c("probability", "RACE"))

Arguments

PStrataObj

an object of class PStrata or PStrata_survival

type

whether the causal estimand is survival probability or RACE, ignored for non-survival outcomes.

Value

An S3 object of type PSOutcome, containing

outcome_array

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.

is.survival

A boolean value, whether the outcome type is survival.

time_points

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.


[Package PStrata version 0.0.5 Index]