computeDGivenXi {sp23design}R Documentation

Given the estimates of the π\pi and θ\theta, compute dd.

Description

This function computes dd via

d(π,ξ)={π0a+(1π0)}{π1abc+(1π1)b}d(\pi,\xi)=\{ \pi_0 a + (1-\pi_0)\} - \{\pi_1 abc + (1-\pi_1)b \}

Usage

computeDGivenXi(piVec, xiVec)

Arguments

piVec

The two-element vector of (π0,π1)(\pi_0, \pi_1)

xiVec

The three-element vector of (a=eα,b=eβ,c=eγ)(a=e^\alpha, b=e^\beta, c=e^\gamma)

Details

This is an approximation to the hazard ratio

Value

The computed value of dd, a scalar

Author(s)

Mei-Chiung Shih, Balasubramanian Narasimhan, Pei He

References

Lai, Tze Leung and Lavori, Philip W. and Shih, Mei-Chiung. Sequential Design of Phase II-III Cancer Trials, Statistics in Medicine, Volume 31, issue 18, p.1944-1960, 2012.


[Package sp23design version 0.9-1 Index]