get_hazardRate: Get hazard rates

Usage Arguments Value Examples

View source: R/get_hazardRate.R

Usage

1
2
3
4
5
get_hazardRate(prop,time,theta=NULL)

get_eventProportion(hazard,time,theta=NULL)

get_eventProportion(hazard, time, theta = NULL)

Arguments

prop

a vector of numbers greater 0 and smaller 1 defining the proportion of patients having an event before 'time'.

time

a number defining the timeframe.

theta

optional number defining the hazard rate. Returning(-log(1-prop) /time * theta)

hazard

a vector of numbers greater 0 defining the hazard rates per timeintervall of length 1.

Value

a vector defining the hazard rate per timeintevall of length 1.

Examples

1
2
3
4
5
6
7
# Assuming, that 30% of patients in the control group have an event after 24 month,
# the monthly hazard rate for the control group can be calculated by:
get_hazardRate(.3,24)

# With a assumed reduction of the hazard by 30% in the treatment group we can calculate
# the hazard rate as follows:
get_hazardRate(.3,24,1-.3)

Knusprikus/BSSRed documentation built on July 6, 2020, 11:02 p.m.