plot.PStrataFit: Plot PStrataFit Objects

View source: R/fit.R

plot.PStrataFitR Documentation

Plot PStrataFit Objects

Description

By default, shows violin plots of posterior strata proportions and potential outcomes (non-survival). Use what = "trace" or what = "dens" for MCMC diagnostics.

Usage

## S3 method for class 'PStrataFit'
plot(x, what = c("default", "trace", "dens"), pars = "strata_prob", ...)

Arguments

x

A PStrataFit object.

what

"default" for strata proportions + potential outcomes, "trace" for traceplots, "dens" for density plots.

pars

Parameter names for trace/dens plots (ignored for default).

...

Additional arguments passed to plotting functions.

Value

A ggplot object.


PStrata documentation built on May 14, 2026, 5:06 p.m.