><strong>Fit model to the expanded dataset</strong>, using <code>censor</code></p>
<p>Then we can use this dataset for a standard <code>msm</code> fit with <code>timeperiod</code> as a categorical covariate.</p>
<p>The missing states at the time change points are given a code equal to 1 plus the number of states</p>
<ul>
<li>here the “state unknown” code is 5, so call <code>msm</code> with <code>censor = 5</code>.</li>
</ul></li>
</ol>
<p>Example (a): Time period only affects the rate of the 1-2 transit