PSOutcome | R Documentation |

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"))
```

`PStrataObj` |
an object of class |

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

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.

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.