Learn R Programming

simIDM (version 0.1.0)

pwA: Cumulative Hazard for Piecewise Constant Hazards

Description

Cumulative Hazard for Piecewise Constant Hazards

Usage

pwA(t, haz, pw)

Value

This returns the value of cumulative hazard at time t.

Arguments

t

(numeric)
study time-points.

haz

(numeric vector)
constant transition hazards.

pw

(numeric vector)
time intervals for the piecewise constant hazards.

Examples

Run this code
pwA(1:5, c(0.5, 0.9), c(0, 4))

Run the code above in your browser using DataLab