plot.IDEMINFER: Plot hypothesis testing results

View source: R/idem_analysis.R

plot.IDEMINFERR Documentation

Plot hypothesis testing results

Description

Generate contour plot of p-values or treatment effect theta for sensitivity analysis results

Usage

## S3 method for class 'IDEMINFER'
plot(x, con.v = 0.05, nlevels = 30, opt = c("pvalue", "effect"), ...)

Arguments

x

A class IDEMINFER list generated by imInfer

con.v

Levels of contour plot

nlevels

Levels of color scale

opt

contour plots of pvalue or effect

...

Options for filled.contour

Details

The plot will only be generated when bootstrap analysis has been conducted.

Examples

## Not run: 
rst.abc <- imData(abc, trt="TRT", surv="SURV", outcome=c("Y1","Y2"),
                 y0=NULL, endfml="Y2",
                 trt.label = c("UC+SBT", "SAT+SBT"),
                 cov=c("AGE"), duration=365, bounds=c(0,100));
rst.fit  <- imFitModel(rst.abc);
rst.imp <- imImpAll(rst.fit, deltas=c(-0.25,0,0.25),
                    normal=TRUE, chains = 2, iter = 2000, warmup = 1000);
rst.est <- imInfer(rst.imp, n.boot = 100);
plot(rst.est);
## End(Not run)


idem documentation built on Aug. 9, 2023, 5:08 p.m.