Thanks for the awesomely quick response Claudia. I love the popularity that the DPMM is getting in ecology and stoked you guys have included it in the sampler. Thanks for that! I did see that once I've clustered I can access all that information conveniently. I haven't written it in Nimble yet as I don't really know how to get past this part and am avoiding investing completely before I know if it's possible.
Here is hopefully a more digestible form of the idea in standard form:
I have a very specific form of what lambda_i, the observation intensity is based on latent locations x_i, lambda(x_i).
For a known cluster K, the likelihood is from a non-homogeneous Poisson process:
exp(-sum_k=1^K (int_0^T lambda_k)) * prod_1^N lambda_i(x_i) * prod_1^K f(x_k)
However I don't observe K or the latent locations that create some unknown intensity which leads me to x_i ~ G.
For K active clusters,
The likelihood under the DPMM is then exp(-sum_k=1^K (int_0^T lambda_k)) * prod_1^N int lambda_i(x_i) dG0(x_i).
So I kind of need that extra exponential term in the MCMC to make inference on the lambda and x terms.
When I define f(t_i) as lambda(x_i)/ Lambda(x_i) where Lambda(x_i) = int_0^T lambda(x_i) dt then after I've clustered I can just call that extra term as proportional to a Poisson.
I suppose a better question is how can I incorporate the active clusters directly into my likelihood so that I can estimate that additional exponential term that is outside of the direct clustering from the CRP? Maybe this can be thought of as a hierarchical problem where there are shared parameters between the CRP and the additional terms.
Thanks so much,
Paul