Learn R Programming

simIDM (version 0.1.0)

PwcOSInt: Helper Function of PWCsurvOS()

Description

Helper Function of PWCsurvOS()

Usage

PwcOSInt(x, t, h01, h02, h12, pw01, pw02, pw12)

Value

Numeric results of the integrand used to calculate the OS survival function for piecewise constant transition hazards, see PWCsurvOS.

Arguments

x

(numeric)
variable of integration.

t

(numeric)
study time-points.

h01

(numeric vector)
constant transition hazards for 0 to 1 transition.

h02

(numeric vector)
constant transition hazards for 0 to 2 transition.

h12

(numeric vector)
constant transition hazards for 1 to 2 transition.

pw01

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

pw02

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

pw12

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