Mixture latent autoregressive models for longitudinal data