Closed laurentott closed 4 years ago
Thanks! Should be fixed now.
It works for the first case, but it leads to a failure to initialize the sampler due to a log prob of negative infinity when I specify manually the uniform prior. The generated stan code has the following line
target += uniform_lpdf(ndt_RT1 | 0, 0.3)
- 1 * log_diff_exp(uniform_lcdf(min_Y_RT1 | 0, 0.3), uniform_lcdf(0 | 0, 0.3));
which I think is problematic if min_Y_RT1 is outside the bound of the uniform distribution. Shouldn't it be instead
target += uniform_lpdf(ndt_RT1 | 0, 0.3)
- 1 * log_diff_exp(uniform_lcdf(0.3 | 0, 0.3), uniform_lcdf(0 | 0, 0.3));
Not sure if this is a bug to be honest. A prior should respect the natural boundaries of a parameter, that is, also not impose hard boundaries when there are non or when the boundaries are in other places.
OK I get it, thanks
Hi Paul, I get a compilation error when I try to fit 2 shifted lognormal in one go. Here is an example :
which gives the following compilation error
Even if I specify manually some priors for the ndt parameters, the generated code still relies on min_Y and does not compile