Skip to contents

This helper function generates a default sequence of evaluation points based on the study's overall time range (PUT REFERENCE HERE). In particular, it calculates \(\delta\) and \(m\) based on left-truncation and time-to-event variables and outputs a sequence ranging from \(\delta + 1\) to \(\delta + m\).

Usage

calc_tp(time, trunc_time)

Arguments

time

The vector of event or censoring times.

trunc_time

The vector of left-truncation times.

Value

A numeric vector of default time points to evaluate the hazard at.