SMS: Applied latent class analysis