Approximate likelihood inference in latent variable models for categorical data.