nelsaalen_timefixed: Compute Nelson Aalen estimate for simulated data

View source: R/data-generation.R

nelsaalen_timefixedR Documentation

Compute Nelson Aalen estimate for simulated data

Description

Version of mice::nelsonaalen but with the control = survival::coxph.control(timefix = FALSE) argument added to the survival::coxph call. This is to deal with floating point errors within the simulation procedure, where two or more simulated time points with minimal difference between would normally be considered as a tie.

Usage

nelsaalen_timefixed(dat, timevar, statusvar, timefix = FALSE)

Arguments

dat

Data frame with time and status variables

timevar

Column name of time variable

statusvar

Column name of (numeric) status variable

timefix

Logical, whether to apply timefix or not. If TRUE it corresponds to using mice::nelsonaalen


survival-lumc/CauseSpecCovarMI documentation built on June 16, 2022, 9:51 a.m.