In JAGS I'd like to define a Poisson distribution for parameter w[i] which is also truncated (greater than or equal to 2) if another parameter, e[i], is greater than 0.
Essentially I want it to represent:
w[i] ~ ifelse( e[i] > 0, dpois(mu) T(2,) , dpois(mu) )
I've tried using the step function by adapting the code that was given in response to someone else's post which was requesting something similar: Choosing Different Distributions based on if - else condition in WinBugs/JAGS
But this doesn't seem to work?
Thank you