Learn R Programming

idem (version 5.2)

plot.IDEMIMP: Plot imputation results

Description

Generate different types of plots for class IDEMIMP objects generated by imImpAll

Usage

# S3 method for IDEMIMP
plot(x, opt = c("imputed", "composite"), fname = NULL, ...)

Arguments

x

A class IDEMIMP object returned from imImpAll

opt

Types of the plot

  • imputed: Plot density of imputed values and the density of the observed outcomes

  • composite: Generate cumulative plot of the composite survival and functional outcome

fname

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

...

Options for generating the plots.

type = imputed
  • deltas: Imputation sensitivity parameter for which to generate the results

  • endp: If TRUE, plot the densities of the imputed functional outcomes. Otherwise, plot the densities of the imputed outcomes

  • adjdensity estimation option

  • colsplot option for colors

  • ltysplot options for line types

  • xlimplot options

  • ylimplot options

  • mfrowplot options

type = composite

  • 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

  • buffer: Small horizontal gap used to better visually distinguish the transition from survival to functional outcome

  • delta: Imputation sensitivity parameter for which to generate the results

  • seg.lab: Labels for the two components of the composite outcome

  • main: plot options

See Also

imImpAll