Skip to contents

Evaluates the subdistribution hazard ratio (sHR) between clinical exposure groups under competing risks.

Usage

fine_gray_estimator(
  df_or_list,
  group_col = NULL,
  time_col = NULL,
  status_col = NULL,
  event_code = 1L,
  competing_code = 2L
)

Arguments

df_or_list

A data.frame or output list from prepare_competing_risks_data().

group_col

Character column name for group comparison (e.g. "high_risk").

time_col

Character column name for event times.

status_col

Character column name for 3-state status.

event_code

Primary event code (default 1L).

competing_code

Competing risk code (default 2L).

Value

A fine_gray_result S3 object containing $shr, $ci_lower, $ci_upper, $p_value.