What package in r enables the writing of a log likelihood function given some data and then estimating it using the EM algorithm?
Thanks.
What package in r enables the writing of a log likelihood function given some data and then estimating it using the EM algorithm?
Thanks.
I believe you are looking for something like flexmix or mixtools. They work out of the box for a number of standard models but can be used with user supplied likelihoods as well. The latter (user defined models) is less straightforward and depending on your application it may be easier/faster/better to write customized code.