Learn R Programming

PwrGSD (version 2.3.8)

CRRtoRR: Cumulative-risk ratios to risk ratios

Description

Given a vector of cumulative-risk ratios, computes risk ratios

Usage

CRRtoRR(CRR, DT, h = NULL)

Value

The vector of risk ratios at the m time points

Arguments

CRR

vector of cumulative risk ratios of length m

DT

vector of time increments upon which the cumulative ratios represent. For example if the hazard takes values h_1, h_2,..., h_m on the intervals [t_1, t_2), [t_2, t_3), ..., [t_m, t_{m+1}) then DT will be c(t_2-t_1, t_3 -t_2, ..., t_{m+1} - t_m)

h

The hazard in the reference arm, of length m

Author

Grant Izmirlian <izmirlian@nih.gov>

Examples

Run this code
  ## none as yet

Run the code above in your browser using DataLab