Learn R Programming

idem (version 5.2)

plot.IDEMSINGLE: Plot MCMC mixing results

Description

Plot method of the class IDEMSINGLE to generate traceplot of the imputed missing outcomes

Usage

# S3 method for IDEMSINGLE
plot(x, ...)

Arguments

x

A class IDEMSINGLE object returned from imImpSingle

...

Additional arguments

See Also

imImpSingle

Examples

Run this code
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));
im.fit <- imFitModel(im.abc);
im.imp.single <- imImpSingle(abc[1,], im.fit,
                             chains = 4, iter = 200, warmup = 100);
plot(im.imp.single);

Run the code above in your browser using DataLab