get_t_pieces: Time-at-risk intervals.

View source: R/expected_events.R

get_t_piecesR Documentation

Time-at-risk intervals.

Description

get_t_pieces returns the time at risk between intervals ts up to time t.

Usage

get_t_pieces(t, ts)

Arguments

{t}

Total time.

{ts}

The breakpoints for intervals, starting at 0, ending at Inf.

Value

A vector of length one less than ts, containing time at risk between consecutive breakpoints in ts.


dominicmagirr/gsdelayed documentation built on May 15, 2024, 8:24 a.m.