Learn R Programming

idem (version 2.2)

imPlotComposite: Cumulative Plot

Description

Generate cumulative plot of the composite survival and functional outcome

Usage

imPlotComposite(imp.rst, delta = 0, buffer = 0.05, at.surv = NULL,
  at.z = NULL, p.death = NULL, seg.lab = c("Survival", "Functional"),
  fname = NULL, cols = rep(c("cyan", "red"), 3), ltys = rep(1, 6),
  main = "", ...)

Arguments

imp.rst

A class IDEM.IMP list containing complete data with relevant missing values imputed. See imImpAll.

delta

Imputation sensitivity parameter for which to generate the results

buffer

Small horizontal gap used to better visually distinguish the transition from survival to functional outcome.

at.surv

Sets the range of the survival times to plot in the cumulative distribution function. By default the range is the range of survival values up to the duration of the study.

at.z

Sets the range of the functional outcome to plot in the cumulative distribution function. By defualt this is the range of the functional outcomes plus the buffer amount to improve visibility in the transition from survival to functional outcome.

p.death

Proportion of the plot width devoted to Survival. By default the cumulative distribution will devote horizontal space to the survival portion that is proportional to the number of subjects who die prior to duration.

seg.lab

Labels for the two components of the composite outcome.

fname

File name of the result pdf file. If fname is null, result pdf file will not be generated

cols

plot options

ltys

plot options

main

plot options

...

Options for pdf function

Examples

Run this code
# NOT RUN {
lst.var <- list(trt="TRT", surv="SURV", outcome=c("Y1","Y2"), y0=NULL,
                endp=c("Y2"), unitTime="days",
                trt.label = c("UC+SBT", "SAT+SBT"),
                cov=c("AGE"), endfml="Y2", duration=365, bounds=c(0,100));
rst.fit <- imFitModel(abc, lst.var);
rst.imp <- imImpAll(abc, rst.fit, deltas=c(-0.25,0,0.25),
                    normal=TRUE, chains = 4, iter = 2000, warmup = 1000);
imPlotComposite(rst.imp);
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab