epinowcast
Loading...
Searching...
No Matches
log_expected_by_report.stan
Go to the documentation of this file.
1
23vector log_expected_by_report(vector log_exp, array[,] int obs_by_report) {
24 int t = size(obs_by_report);
25 vector[t] log_exp_rep;
26 for (i in 1:t) {
27 log_exp_rep[i] = log_sum_exp(log_exp[obs_by_report[i]]);
28 }
29 return(log_exp_rep);
30}
vector log_expected_by_report(vector log_exp, array[,] int obs_by_report)