Skip to contents

For a grouping with more than two levels, computes a log-rank test for every pair of groups and adjusts the raw p-values with the BH method.

Usage

zhn_km_pairwise(data, time_col, event_col, group_col)

Arguments

data

A data frame / cohort with the time and event columns.

time_col, event_col

Column names (character) for follow-up time and event; the event is parsed to 0/1 via the package's hardened coercion.

group_col

Optional grouping column (character), or NULL for one overall curve.

Value

A data frame with Gruppe_1, Gruppe_2, p_roh, p_BH.