Longitudinal studies and categorical latent variable