[R] Vermunt's LEM in R

David Duffy davidD at qimr.edu.au
Wed May 11 13:04:23 CEST 2011


I don't know of any R package that can match all the functionality of LEM 
eg fitting equality constraints to model parameters a la LISREL.

WRT dumping tables, I would have thought that as.data.frame.table does 
pretty much what you want, [not tested]

newtab <- as.data.frame(table(a,b,c))
cat("dim\n")
for(i in seq(1, ncol(newtab)-1) {
   cat(nlevels(newtab[,1]," ")
}
cat("\nlab ")
for(i in seq(1, ncol(newtab)-1) {
   cat(letters[i], " ")
}
cat("\ndat [", newtab[,"Freq"], " ]\n")




-- 
| David Duffy (MBBS PhD)                                         ,-_|\
| email: davidD at qimr.edu.au  ph: INT+61+7+3362-0217 fax: -0101  /     *
| Epidemiology Unit, Queensland Institute of Medical Research   \_,-._/
| 300 Herston Rd, Brisbane, Queensland 4029, Australia  GPG 4D0B994A v



More information about the R-help mailing list