model { increment_log_prob(history[1] * ( #10000000 log(chi[1])));################################################## increment_log_prob(history[2] * ( #11000000 log(phi[1]) + log(p[2]) + log(chi[2])));################################################## increment_log_prob(history[3] * ( #10100000 log(phi[1]) + log1m(p[2]) + log(phi[2]) + log(p[3]) + log(chi[3])));
increment_log_prob(history[4] * ( #11100000 log(phi[1]) + log(p[2]) + log(phi[2]) + log(p[3]) + log(chi[3])));################################################## increment_log_prob(history[5] * ( #10010000 log(phi[1]) + log1m(p[2]) + log(phi[2]) + log1m(p[3]) + log(phi[3]) + log(p[4]) + log(chi[4])));
increment_log_prob(history[6] * ( #11010000 log(phi[1]) + log(p[2]) + log(phi[2]) + log1m(p[3]) + log(phi[3]) + log(p[4]) + log(chi[4]))); increment_log_prob(history[7] * ( #10110000 log(phi[1]) + log1m(p[2]) + log(phi[2]) + log(p[3]) + log(phi[3]) + log(p[4]) + log(chi[4])));
increment_log_prob(history[8] * ( #11110000 log(phi[1]) + log(p[2]) + log(phi[2]) + log(p[3]) + log(phi[3]) + log(p[4]) + log(chi[4])));
################################################## I was hoping to see not much more of a penalty for bumping up to seven capture events after marking (128 capture histories), but I'm looking at about 30 minutes or so for 50000 iterations with 17500 individuals. Maybe I have unrealistic hopes, but I'd like to cut that down.
Thanks Ben. That is very good point that I had not considered. But my goal here is specifically to compare the frequentist properties of the Bayesian version of CJS to available MLE methods. I'm interested in the coverage and width of credible intervals in addition to the posterior mean. Actually I was thinking of using the posterior mode and HPD intervals, but if there are pitfalls there I'd be happy to be educated. I'd like to directly compare the credible intervals to confidence intervals coming out of Jeff Laake's marked package for example.I'll play around with number of iterations and see how that affects the stability of credible intervals.