Skip to contents

Comparing Survival Outcomes

Usage

comparingSurvival(
  data,
  times = NULL,
  status = NULL,
  groups = NULL,
  ciyn = FALSE,
  loglogyn = FALSE,
  timeunits = "None",
  pairwise = FALSE,
  pairwiseCorrection = "none",
  trendTest = FALSE,
  landmarkTime = 0,
  landmarkUnit = "same"
)

Arguments

data

.

times

.

status

.

groups

.

ciyn

.

loglogyn

.

timeunits

.

pairwise

Perform pairwise log-rank comparisons between all groups

pairwiseCorrection

Method for adjusting p-values for multiple comparisons

trendTest

Test for trend across ordered groups (assumes groups are ordered)

landmarkTime

Exclude events before this time (0 = no exclusion)

landmarkUnit

Unit for landmark time

Value

A results object containing:

results$texta preformatted
results$compsurvTable1a table
results$compsurvTable2a table
results$compsurvTable3a table
results$plotan image
results$plot2an image
results$pairwiseTablea table
results$trendTestTablea table
results$landmarkNotea html

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

results$compsurvTable1$asDF

as.data.frame(results$compsurvTable1)