On Jul 3, 2014, at 1:08 PM, Linas Mockus <
linasm...@gmail.com> wrote:
> Hi,
>
> Does anybody have experience with modeling measurement noise for count data in stan. Assuming that true count data from observation to observation are distributed according to poisson (perhaps with the addition of overdispersion parameter as in Gelman & Hill) measuring instrument adds some normal additive/multiplicative/log normal noise. It could be expressed as:
> true_counts[i]~poisson(lambda[i])
> observed_counts[i]~normal(true_counts[i],sigma)
I'm confused about the data here --- is the observed_counts
variable continuous?
> Problem with this is that Stan doesn't allow integer parameters true_counts. observed_counts are real since the instrument returns real values (current).
Right --- there's no way to code this up directly. And it's
probably going to be hard to marginalize out.
> I appreciate any comments on this.
Pardon my questions here --- I'm not an expert on these models.
If the observed counts are actually continuous, then why use
a count based model at all?
If the observed counts are discrete, then why not just use
an overdispersed model like negative_binomial --- that also gives
you one parameter for the amount of extra dispersion.
An alternative would be to roll your own overdispersed model
by doing something like this:
true_expected_counts[i] ~ lognormal(lambda[i], sigma);
observed_counts[i] ~ poisson(true_expected_counts[i]);
- Bob
> Thanks,
> Linas
>
> --
> You received this message because you are subscribed to the Google Groups "Stan users mailing list" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to
stan-users+...@googlegroups.com.
> For more options, visit
https://groups.google.com/d/optout.