plot.IDEMINFER {idem} | R 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 |
con.v |
Levels of contour plot |
nlevels |
Levels of color scale |
opt |
contour plots of |
... |
Options for |
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)
[Package idem version 5.2 Index]