join_empirical_hazard: Function used to join the empirical hazard to the data

View source: R/join_empirical_hazard.R

join_empirical_hazardR Documentation

Function used to join the empirical hazard to the data

Description

join_empirical_hazard() takes a Kaplan Meier empirical estimate which includes the survival estimates and joins the hazard estimates to it.

Usage

join_empirical_hazard(km)

Arguments

km

Kaplan-Meier estimates, i.e., object generated after running broom::tidy(survfit_obj), in which survfit_obj is a survfit object. Can also be a survfit object.

Value

The same object as inputed, but with the hazard estimates column (hazard_estimate) joined to it.


lnmixsurv documentation built on Sept. 11, 2024, 7:18 p.m.