This function computes \(d\) via $$d(\pi,\xi)=\{ \pi_0 a + (1-\pi_0)\} - \{\pi_1 abc + (1-\pi_1)b \} $$
computeDGivenXi(piVec, xiVec)
The two-element vector of \((\pi_0, \pi_1)\)
The three-element vector of \((a=e^\alpha, b=e^\beta, c=e^\gamma)\)
The computed value of \(d\), a scalar
This is an approximation to the hazard ratio
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.