Whether Groups Have Different Survival Curves

Use grouped survival analysis when the question is whether survival differs between levels of a grouping variable.

  • unadjusted curves: Kaplan-Meier (km)
  • adjusted group differences: Cox with the group as predictor
km.assoc <- associate$regression(
  data,
  outcome = demented,
  time = age.death,
  predictors = prs.tertile,
  model = "km"
)

What comes back

A PolyGeniusAssociations object with an omnibus log-rank row for km, plus curve, risk-table, and group-summary artifacts.

Plotting

visualize$associations$survival(km.assoc, show.event.table = TRUE) visualize$associations$heatmap(km.assoc)

Open the survival guide