Email zadetek: A latent variable model for improving inference in trials assessing the effect of dose on toxicity and composite efficacy endpoints