I'm looking for a an R
package which can be used to train a Dirichlet prior from counts data. I'm asking for a colleague who's using R
, and don't use it myself, so I'm not too sure how to look for packages. It's a bit hard to search for, because "R" is such a nonspecific search string. There doesn't seem to be anything on CRAN, but are there any other places to look?
I've only come across both R and the Dirichlet distribution in passing, so I hope I'm not too much off the mark.
This mailing list message seems to answer your question:
Scrolling through the results of RSiteSearch("dirichlet") suggests some useful tools in the VGAM package. The gtools package and MCMC packages also have ddirichlet() functions that you could use to construct a (negative log) likelihood function and optimize with optim/nlmin/etc.
The deal, DPpackage and mix packages also may or may not provide what you need.
Then again, these are all still CRAN packages, so I'm not sure if you already found these and found them unsuitable.
As for searching for R, the R project site itself already provides a few links on its search page.