Issues on the Estimation of Latent Variable and Latent Class Models with Social Science Applications