Latent variable models for ordinal data