Exercise 23.1

Part a. Event times: \(t = 2\) (Drug A), \(t = 4\) (Drug A), \(t = 8\) (Drug B), \(t = 12\) (Drug A), \(t = 14\) (Drug B).

Risk sets at each event (all subjects with survival time \(\geq t_{(j)}\)):

Event time Subjects at risk \(n_{Aj}\) \(n_{Bj}\) Event group
\(t=2\) A:2,4,9,12; B:3,5,8,14 4 4 Drug A
\(t=4\) A:4,9,12; B:5,8,14 3 3 Drug A
\(t=8\) A:9,12; B:8,14 2 2 Drug B
\(t=12\) A:12; B:14 1 1 Drug A
\(t=14\) B:14 0 1 Drug B

(At \(t=4\): B:3 was censored at 3, so out; B:5,8,14 remain — that is 3. At \(t=8\): B:5 censored, gone; A:9,12 remain.)

Partial likelihood contributions:

\[L_1 = \frac{1}{4 + 4e^\beta} = \frac{1}{4(1+e^\beta)}, \qquad L_2 = \frac{1}{3 + 3e^\beta} = \frac{1}{3(1+e^\beta)},\] \[L_3 = \frac{e^\beta}{2 + 2e^\beta} = \frac{e^\beta}{2(1+e^\beta)}, \qquad L_4 = \frac{1}{1+e^\beta}, \qquad L_5 = \frac{e^\beta}{e^\beta} = 1.\]

Multiplying: \[L(\beta) = \frac{1}{4(1+e^\beta)} \cdot \frac{1}{3(1+e^\beta)} \cdot \frac{e^\beta}{2(1+e^\beta)} \cdot \frac{1}{(1+e^\beta)} \cdot 1 = \frac{e^\beta}{24(1+e^\beta)^4}.\]

So \(C =\) 1/24 and \(L(\beta) = \frac{e^\beta}{24(1+e^\beta)^4}\).

Part b. Log partial likelihood: \[\ell(\beta) = \log C + \beta - 4\log(1+e^\beta).\]

Differentiating: \[\ell'(\beta) = 1 - \frac{4e^\beta}{1+e^\beta} = 0 \implies 1 + e^\beta = 4e^\beta \implies e^\beta = \frac{1}{3} \implies \hat\beta = -\log 3.\]

The MPLE is \(\hat\beta = -\log 3 \approx\) -1.099.

Since \(e^{\hat\beta} = 1/3 < 1\), Drug B patients have a lower hazard than Drug A patients (longer survival), though the sample is very small.

Exercise 23.2

Part a. From \(\ell'(\beta) = 1 - 4e^\beta/(1+e^\beta)\): \[\ell''(\beta) = -\frac{4e^\beta}{(1+e^\beta)^2}.\]

At \(\hat\beta = -\log 3\): \(e^{\hat\beta} = 1/3\), \(1+e^{\hat\beta} = 4/3\).

\[-\ell''(\hat\beta) = \frac{4 \times (1/3)}{(4/3)^2} = \frac{4/3}{16/9} = \frac{4}{3} \times \frac{9}{16} = \frac{3}{4}.\]

Therefore \(\widehat{\mathrm{Var}}(\hat\beta) = 1/(3/4) = 4/3 \approx\) 1.333.

\(\widehat{\mathrm{se}}(\hat\beta) = \sqrt{4/3} \approx 1.155\).

Part b. Wald test statistic: \[Z = \frac{\hat\beta}{\widehat{\mathrm{se}}(\hat\beta)} = \frac{-\log 3}{\sqrt{4/3}} = \frac{-1.0986}{1.1547} \approx -0.951.\]

\(|Z| =\) 0.951.

Critical value at 5% two-sided: \(z_{0.975} = 1.960\).

Since \(|Z| = 0.951 < 1.960\), we do not reject \(H_0\) at the 5% level. There is insufficient evidence that the two drugs differ in survival. (The very small sample of \(n=8\) with only 5 events means the test has very low power.)

End of Solutions to Exercises 23