Function for Generating Summaries for Survival Analysis.

survival(
  data,
  elapsedtime,
  tint = FALSE,
  dxdate,
  fudate,
  explanatory,
  outcome,
  outcomeLevel,
  dod,
  dooc,
  awd,
  awod,
  analysistype = "overall",
  cutp = "12, 36, 60",
  timetypedata = "ymd",
  timetypeoutput = "months",
  uselandmark = FALSE,
  landmark = 3,
  pw = FALSE,
  padjustmethod = "holm",
  ph_cox = FALSE,
  sc = FALSE,
  kmunicate = FALSE,
  ce = FALSE,
  ch = FALSE,
  endplot = 60,
  ybegin_plot = 0,
  yend_plot = 1,
  byplot = 12,
  multievent = FALSE,
  ci95 = FALSE,
  risktable = FALSE,
  censored = FALSE,
  pplot = TRUE
)

Arguments

data

The data as a data frame.

elapsedtime

.

tint

.

dxdate

.

fudate

.

explanatory

.

outcome

.

outcomeLevel

.

dod

.

dooc

.

awd

.

awod

.

analysistype

.

cutp

.

timetypedata

select the time type in data

timetypeoutput

select the time type in output

uselandmark

.

landmark

.

pw

.

padjustmethod

.

ph_cox

.

sc

.

kmunicate

.

ce

.

ch

.

endplot

.

ybegin_plot

.

yend_plot

.

byplot

.

multievent

.

ci95

.

risktable

.

censored

.

pplot

.

Value

A results object containing:

results$subtitlea preformatted
results$todoa html
results$medianSummarya preformatted
results$medianTablea table
results$coxSummarya preformatted
results$coxTablea table
results$tCoxtext2a html
results$cox_pha preformatted
results$plot8an image
results$survTableSummarya preformatted
results$survTablea table
results$pairwiseSummarya preformatted
results$pairwiseTablea table
results$plotan image
results$plot2an image
results$plot3an image
results$plot6an image
results$calculatedtimean output
results$outcomeredifenedan output

Tables can be converted to data frames with asDF or as.data.frame. For example:

results$medianTable$asDF

as.data.frame(results$medianTable)

Examples

# example will be added