trial_msm function

Fit the marginal structural model for the sequence of emulated trials