plot.PRISM: plot.PRISM

Description Usage Arguments Value See Also

View source: R/plot.R

Description

Plots PRISM results, either forest plot (estimate with CIs) or resampling distribution.

Usage

1
2
3
## S3 method for class 'PRISM'
plot(x, type = "submod", estimand = NULL,
  grid.data = NULL, grid.thres = ">0", ...)

Arguments

x

PRISM object

type

Type of plot (default="submod", tree plot + parameter estimates). Other optins include "forest" ( forest plot for overall and subgroups),"PLE:waterfall" (waterfall plot of PLEs), "PLE:density" (density plot of PLEs), "resample" (resampling distribution of parameter estimates for overall and subgroups), and "heatmap" (heatmap of ple estimates/probabilities). For "submod" and "forest", CIs are based on the observed data unless bootstrap resampling. If calibrate=TRUE (the default), then calibrated CIs are shown, otherse CIs based on the percentile method are shown.

estimand

For "resample" plot only, must be specify which estimand to visualize. Default=NULL.

grid.data

Input grid of values for 2-3 covariates (if 3, last variable cannot be continuous). This is required for type="heatmap". Default=NULL.

grid.thres

Threshold for PLE, ex: I(PLE>thres). Used to estimate P(PLE>thres) for type="heatmap". Default is ">0". Direction can be reversed and can include equality sign (ex: "<=").

...

Additional arguments (currently ignored).

Value

Plot (ggplot2) object

See Also

PRISM


StratifiedMedicine documentation built on Oct. 30, 2019, 12:10 p.m.