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

Description Usage Arguments Value

Description

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

Usage

1
surv_pieces(t, change_points, lambdas, mu = 0, dropouts = FALSE)

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).

mu

The dropout hazard (a constant). Assumed independent to event hazard.

dropouts

Is dropout the event of interest? Default is FALSE.

Value

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


dominicmagirr/expectedevents documentation built on May 7, 2019, 4:39 p.m.