Thanks David. I already tried two different programs for this. The first one has errors. I'm working right now on my alternative program ( i hope it will work), BUT I still prefer to use the first program I made because it is more detailed. So, I'm trying how to correct the errors in the first R program.
After doing two different programs, I just felt frustrated of getting errors all the time that's why I asked someone's help. Thank you.:working: ~tj -- View this message in context: http://n4.nabble.com/EM-algorithm-in-R-tp1663020p1675979.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.