epinowcast
Loading...
Searching...
No Matches
obs_rng.stan
Go to the documentation of this file.
1
20array[] int obs_rng(vector log_exp_obs, array[] real phi, int model_obs) {
21 int n = num_elements(log_exp_obs);
22 array[n] int pp;
23 if (model_obs) {
24 pp = neg_binomial_2_log_rng(log_exp_obs, phi[1]);
25 }else{
26 pp = poisson_log_rng(log_exp_obs);
27 }
28 return(pp);
29}
array[] int obs_rng(vector log_exp_obs, array[] real phi, int model_obs)
Definition obs_rng.stan:20