Cohort study: incidence rate comparison (person-time, Poisson)
Source:R/calc-obs.R
calculate_cohort_rate.RdMachin et al. (2018) Eq 6.2 (p. 84): total person-time for a 1:phi
allocation is PU = (z_1-a/2 + z_1-b)^2 (lambda_T + lambda_S/phi) / (lambda_T - lambda_S)^2. This implementation reports the unexposed (S)
and exposed (T) components separately, with r being the
exposed:unexposed person-time ratio.