Sorry to keep drawing this out. I’m actually not so sure that something like this should work. I think that you want a posterior that is proportional to the sum of the posterior PDFs that correspond to each value of \theta (or equivalently, proportional to the arithmetic mean of the PDFs). But the approach you’ve suggested gives PDF that is proportional to the geometric mean of the PDFs, not the arithmetic mean. Thus, I think that rather than combining the lpdfs by summing and dividing by N, you’d need to combine the lpdfs with a log_sum_exp
. But I don’t have time to work through carefully and make sure I’m not leading you astray.
What definitely works is brute-force multiple imputation :)