Latent class logit model in r. For each unit i = 1,.