Choose a parametric baseline hazard and fit
Under independent right censoring, the full survival likelihood is
Estimate by maximum likelihood estimation and test with a likelihood-ratio test, Wald test, or score test. Equality of the two event-time distributions is exactly within this model.
Under a country-specific constant hazard survival model, let be the number of deaths and the total person-time at risk in country . The likelihood is proportional to
so the maximum-likelihood estimator is . Test by a likelihood-ratio test, score test, or Wald test; equivalently, give a Poisson distribution with mean and test the country coefficient in a Poisson regression with offset .
The variance approaches the Poisson distribution variance when . Equivalently, with , the Poisson model is the boundary value . The usual Wilks theorem for a likelihood-ratio test assumes that the null parameter is an interior point of a smooth parameter space, so comparing the statistic with an ordinary law is invalid here.
A valid parametric bootstrap proceeds as follows. First fit the null Poisson model and retain its fitted means . For each bootstrap repetition , independently simulate
using the original doses, refit both the Poisson and negative-binomial models to that simulated data, and calculate
For the observations calculate the analogous . The bootstrap -value
uses the null distribution with its boundary and finite-sample fitting behaviour automatically reproduced. A large controls the Monte Carlo error of this estimate.
The Neyman–Pearson lemma says that among tests of size at most for two simple hypotheses, a likelihood-ratio test rejecting where is most powerful, with boundary randomisation if required. If is that test and any competing test, choose so the sizes agree. Pointwise,
Integration and the size inequality yield .
Here
which decreases with . Thus reject for , where
The third fit is a negative binomial regression. The Poisson model is obtained at the boundary where the negative-binomial overdispersion tends to zero, so the likelihood-ratio test has the asymptotic null distribution . Since model3 has one additional parameter,
The supplied output gives , and hence the boundary-corrected p-value is
Under the two-rate alternative, maximize the piecewise-exponential survival model likelihood separately to obtain the estimates in part (i). Under , there are 15 deaths and 2200 days of exposure, so . Twice the maximized log-likelihood difference is
Under the null this likelihood-ratio test statistic is asymptotically .
Test
with a likelihood-ratio test. Model1 has three likelihood parameters and model2 has four, so their AIC values give
The statistic is
Using a naive reference gives . Because the null variance lies on the boundary, the standard asymptotic reference is the mixture , giving . Either calibration rejects at the five-percent level and supports a subject random effect.
The number of free dimensions remaining after specified constraints often determines a reference sampling distribution. In a full-rank normal linear model with observations and mean coefficients, the residual space has dimension . A regular nested likelihood-ratio test instead uses the difference in free statistical parameter dimensions. Boundary constraints may invalidate this regular calibration.