Solution

ID: past-exam-of-the-mathematics-course-of-the-university-of-cambridge/2002/iii/paper-36/3/ii/solution

The Poisson regression margin-matching score equations from the site indicator for each directly give
Subtracting these seven row balances from the intercept equation gives the missing reference row balance. Therefore
The after-indicator score similarly gives . Subtracting it from the intercept balance yields the before-column balance, so
Thus the fitted before and after count totals are and , and each fitted site total equals its observed total. These identities concern expected counts ; unequal exposures do not imply corresponding unweighted sums of fitted rates equal sums of observed rates. They follow from the unpenalized canonical Poisson likelihood and the available intercept/factor columns, not from balanced exposure periods.

New to topics? Read the docs here!