PwrGSD (version 2.3.1)

CDFOR2LRR: Convert CDF Odds Ratio to Logged Relative Risks

Description

Given the values of the baseline hazard and odds ratio of the CDF at a grid of time points find the corresponding logged risk ratio.

Usage

CDFOR2LRR(tcut, tmax, h0, CDFOR)

Arguments

tcut

Grid of time points (left endpoints)

tmax

The right endpoint of the last interval

h0

Values of the baseline hazard function on given intervals

CDFOR

Values of the odds ratio of the CDF's on the given intervals

Value

An m by 2 matrix, where m=length(tcut), having columns 'tcut' and logged RR.