Learn R Programming

idem (version 5.2)

plot.IDEMINFER: Plot hypothesis testing results

Description

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

Usage

# S3 method for 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

Run this code
if (FALSE) {
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);}

Run the code above in your browser using DataLab