function ?stepFlexmix in the flexmix package may be what you're looking for hth, Ingmar
On Mon, May 23, 2011 at 11:21 PM, Daniel Malter <dan...@umd.edu> wrote: > Hi, > > I perform latent class analysis on a matrix of dichotomous variables to > create an indicator of class/category membership for each observation. I > would like to know whether there is a function that selects the best fit in > terms of number of classes/categories. > > Currently, I am doing this with the lca() function of the e1071 package. > This function requires me to specify the number of classes and to compare > fit statistics for each run of lca. This becomes somewhat cumbersome the > more variables the data matrix contains and, thus, the greater the number > of > possible classes is. I was wondering whether there is an alternative > implemented in a different package that does exactly that. > > Thanks, > Daniel > > -- > View this message in context: > http://r.789695.n4.nabble.com/Latent-class-analysis-selection-of-the-number-of-classes-tp3545538p3545538.html > Sent from the R help mailing list archive at Nabble.com. > > ______________________________________________ > R-help@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide > http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. > [[alternative HTML version deleted]] ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.