rmst_diff()
Compute RMST difference between two groups with confidence interval.
Usage
rmst_diff(
surv,
tau,
group,
*,
strata=None,
conf_level=0.95,
)Convenience function that calls rmst_test() with estimand="difference" and returns a DataFrame with the comparison results.
Parameters
surv: Surv-
A right-censored Surv response.
tau: float-
The restriction time.
group: Any-
Group membership.
strata: Any | None = None-
(Optional) Stratification variable.
conf_level: float = 0.95- Confidence level for intervals.
Returns
DataFrame or dict- Comparison results in tabular format.