View source: R/idem_imputation.R
plot.IDEMIMP | R Documentation |
Generate different types of plots for class IDEMIMP
objects generated
by imImpAll
## S3 method for class 'IDEMIMP'
plot(x, opt = c("imputed", "composite"), fname = NULL, ...)
x |
A class |
opt |
Types of the plot
|
fname |
File name of the result pdf file. If |
... |
Options for generating the plots.
|
imImpAll
## Not run:
im.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(im.abc);
rst.imp <- imImpAll(rst.fit, deltas=c(-0.25,0,0.25),
normal=TRUE, chains = 2, iter = 2000, warmup = 1000);
plot(rst.imp, opt = "imputed"),
plot(rst.imp, opt = "composite")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.