Learn R Programming

simIDM (version 0.1.0)

getPWCHazard: Piecewise Constant Hazard Values

Description

This returns piecewise constant hazard values at specified time points.

Usage

getPWCHazard(haz, pw, x)

Value

Hazard values at input time-points.

Arguments

haz

(numeric)
piecewise constant input hazard.

pw

(numeric)
time intervals for the piecewise constant hazard.

x

(numeric)
time-points.

Examples

Run this code
getPWCHazard(c(1, 1.2, 1.4), c(0, 2, 3), c(1, 4, 6))

Run the code above in your browser using DataLab