surv_pieces_simple: Probability of event-free at time t, under piecewise constant...

View source: R/expected_events.R

surv_pieces_simpleR Documentation

Probability of event-free at time t, under piecewise constant hazard.

Description

surv_pieces returns the probability of being event-free at time t assuming piecewise constant hazard.

Usage

surv_pieces_simple(t, change_points, lambdas)

Arguments

{t}

time

{change_points}

The breakpoints for the piecewise hazard function.

{lambdas}

A vector of length one more than change_points. The hazard between consecutive breakpoints in c(0, change_points, Inf).

Value

The probability of being free of the event-of-interest at time t.


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