pwA {simIDM}R Documentation

Cumulative Hazard for Piecewise Constant Hazards

Description

Cumulative Hazard for Piecewise Constant Hazards

Usage

pwA(t, haz, pw)

Arguments

t

(numeric)
study time-points.

haz

(⁠numeric vector⁠)
constant transition hazards.

pw

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

Value

This returns the value of cumulative hazard at time t.

Examples

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

[Package simIDM version 0.1.0 Index]