Could you show me how to implement this? I based what I did on this post. This is how i’m reading my code:
- Observation
nwill be zero with probabilitytheta[n]:zero=bernoulli_rng(theta[n]); - If observation n is not zero, then it will draw a value from the Poisson:
y_sim[n]=(1-zero)*poisson_log_rng(lambda_log[n])