The profdpm package facilitates inference at the posterior mode for a class of product partition models. Dirichlet process mixtures are currently the only available class members. Several methods are implemented to search for the maximum posterior estimate of the data partition. This article discusses the relevant theory, the R and underlying C implementation, and examples of high level functionality.
Shotwell, M. S. (2013). Profdpm: An R package for MAP estimation in a class of conjugate product partition models. Journal of Statistical Software, 53(8), 1–18. https://doi.org/10.18637/jss.v053.i08