Joint modelling of mixed outcome types using latent variables