Learn R Programming

simcausal (version 0.1)

plotSurvEst: (EXPERIMENTAL) Plot Survival

Description

Plot survival curves given a list of survival outcomes

Usage

plotSurvEst(surv_res_est = list(), xindx = NULL, y_lab = "", miny = 0,
  maxy = 1)

Arguments

surv_res_est
A list of vectors containing action-specific discrete survival values over time
xindx
A vector of indices for subsetting each of the survival survival vectors in surv_res_est
y_lab
A character vector for labeling y axis
miny
Minimum y to plot, 0 to 1
maxy
Maximum y to plot, 0 to 1