title: Using poLCA.posterior in R
body: <p>I am using <code>poLCA</code> to generate posterior latent class membership probabilities.  I need to assign each of 477 participants to one of three classes.  The process is a bit tedious, as I am having to look at each of three probabilities for every case.  </p>
  
  <p>Is there a way to have R generate a dummy variable for latent class membership based on the posterior estimations?  Said another way, is there a code that will generate latent class membership assignments based on the optimal probability of membership?</p>