Skip to contents

\(\hat{f}(x)\)

Usage

f_hat(t, lifetime, event, censoring_indicator)

Arguments

t

A time point at which hazard estimates are sought.

lifetime

A numeric vector representing the observed time to event.

event

event indicator

censoring_indicator

An indicator for censoring (1=censored, 0=not). Defaults to a vector of 0s if NULL. An observation is only treated as an event if status=1 AND censoring=0.

Value

a scalar

Author

lcgodoy