This function computes the variance of the generalized likelihood ratio statistic at interim stopping times
computeGammaSubT(thetaHat, pi, interimData)
The three-element vector of \((\alpha, \beta, \gamma)\)
The two-element vector of \((\pi_0, \pi_1)\)
The interim data at time \(t\) as a data frame
A scalar value of the variance \(\Gamma_t\)
The function builds a hessian matrix and uses a reparametrization to compute \(\Gamma_t\), the variance of the generalized likelihood ration stochastic process at time $t$.
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.