Solution

ID: past-exam-of-the-mathematics-course-of-the-university-of-cambridge/2024/ii/paper-4/13l/a/solution

With , the fitted logistic model is
Risk category 1 is the reference level, so its effect is included in the intercept; adding a separate coefficient for both levels would make the design matrix linearly dependent.

New to topics? Read the docs here!