I am trying to model the finite mixture model case where:
$$ \theta \sim \sum_{h=1}^{k}\pi_h \delta_{\theta^{*}_h} $$
where $\theta^{*}_h \sim Gamma(\alpha, \beta)$, $(\pi_1, \ldots ,\pi_k) \sim Dirichlet(1/k, \ldots, 1/k)$, and $\delta$ is the dirac point mass.
I am doing this in R, but I do not even know how to start. Would anyone have any idea how I can implement this? Thanks!