Hi,
I ran into a model where the posterior estimate from Stan does not fit
the true value (using simulated data) --- in fact, the region does not
even include it, by a large margin. I have created a minimal example,
posted at
https://gist.github.com/tpapp/fadf244cb8c93244412f
The Stan model uses the approach suggested by Bob Carpenter for a more
complicated model
(
https://groups.google.com/forum/#!topic/stan-users/PZE0tkwJ2A4).
Before filing an issue, I would apprecite if someone could look at
it. The data generating process is the following:
m <- 1 # boundary
z <- rlnorm(10000) # latent variable
z <- z[z > m] # only kept when above m
N <- length(z)
z_hat <- rlnorm(N, log(z), 0.1) # observed with noise
z is not observed, but z_hat is. The parameter that I am interested in
is m, here = 1, but the stan model (at the link above) estimates it far
below that, moreover, the distribution is not really consistent across
runs (with 1000 iterations).
While it is most likely that I am facing a conceptual issue that I need
to understand, I wonder if I ran into a bug.
Best,
Tamas