epinowcast
Loading...
Searching...
No Matches
obs_lpmf.stan
Go to the documentation of this file.
1
27real obs_lpmf(array[] int obs, vector log_exp_obs, array[] real phi,
28 int model_obs) {
29 real tar = 0;
30 if (model_obs) {
31 tar = neg_binomial_2_log_lpmf(obs | log_exp_obs, phi[1]);
32 }else{
33 tar = poisson_log_lpmf(obs | log_exp_obs);
34 }
35 return(tar);
36}
37
38real obs_lpmf(int obs, real log_exp_obs, array[] real phi,
39 int model_obs) {
40 real tar = 0;
41 if (model_obs) {
42 tar = neg_binomial_2_log_lpmf(obs | log_exp_obs, phi[1]);
43 }else{
44 tar = poisson_log_lpmf(obs | log_exp_obs);
45 }
46 return(tar);
47}
real obs_lpmf(array[] int obs, vector log_exp_obs, array[] real phi, int model_obs)
Definition obs_lpmf.stan:27