pwe_S: Calculate the survivor function S(t) from a piecewise...

Description Usage Arguments Value

Description

Calculate the survivor function S(t) from a piecewise exponential model.

Usage

1
pwe_S(time, cut.pts, haz.rates)

Arguments

time

Time-point at which survivor fct is evaluated, S(time) = exp(-H(time)).

cut.pts

Vector of cut points.

haz.rates

Vector of hazard rates (must have one element more than the cut.pts vector).

Value

numeric estimate of survivor function at time t, S(t)


bashlee/test documentation built on June 22, 2019, 12:42 a.m.