These models use a grid approximation to marginalize over activity centers s
(as you would do for maximum likelihood estimation), but are Bayesian.
This marginalization is not required in Stan (which can directly use s
), but
these models show how it can be done.
See scr0-known-n.R.
-
Binomial form. See scr0-unknown-n-binomial-form.R, which uses a binomial model for N (as in eq. 6.2.1).
-
Data augmentation. See scr0-unknown-n-data-augmentation.R.
-
Binomial form. See scr0-wolverine.R.
-
Poisson integrated. See scr0-wolverine-poisson-integrated.R. Notice that even though we integrated
s
out of the model, we can still sample froms
in thegenerated quantities
block.