Solution (source code)

= Solution

After stroke, absence of a dementia effect on the death intensity is the restriction
$$
H_0:q_{35}=q_{45}.
$$
Fit the unrestricted model and the nested model subject to this equality, then use a <likelihood-ratio test>. Under regularity conditions, twice the log-likelihood difference is asymptotically chi-squared with one degree of freedom.