latent ideology model for varying numbers of ideologies