I have country-level daily epidemic histories for `M` countries over `N2` days, together with country-specific populations, intervention covariates, a serial-interval distribution, and an infection-to-death delay distribution. The observed outcome used in the likelihood is the daily death count, while daily infections are latent.

My model is:
For each country `m = 1, ..., M`, the first `N0` days of latent infections are initialized by a common level `y_m`,

`prediction_{tm} = y_m, for t = 1, ..., N0.`

The intervention effects are

`alpha_p = alpha_hier,p - log(1.05) / 6, for p = 1, ..., P,`

and the baseline reproduction number trajectory is

`Rt_{tm} = mu_m exp(-x_{tm}^T alpha).`

For `t > N0`, let `C_{tm}` be the cumulative number of infections before day `t`. Then

`Rt_adj,tm = ((pop_m - C_{tm}) / pop_m) Rt_{tm},`
`prediction_{tm} = Rt_adj,tm sum_{s < t} prediction_{sm} SI_{t-s}.`

Expected deaths are obtained by convolving infections with the infection-to-death distribution:

`E_deaths_{tm} = ifr_noise_m sum_{s < t} prediction_{sm} f_{t-s,m}.`

Observed deaths satisfy

`deaths_{tm} ~ NegBinomial2(E_deaths_{tm}, phi),`

for `t = EpidemicStart_m, ..., N_m`.

The priors are

`tau ~ Exponential(0.03),`
`y_m ~ Exponential(1 / tau),`
`phi ~ half-Normal(0, 5),`
`kappa ~ half-Normal(0, 0.5),`
`mu_m ~ half-Normal(3.28, kappa),`
`alpha_hier,p ~ Gamma(0.1667, 1),`
`ifr_noise_m ~ half-Normal(1, 0.1).`

Here:
`prediction_{tm}` is the latent number of infections on day t in country m,
`Rt_{tm}` is the reproduction number before susceptible depletion,
`Rt_adj,tm` is the susceptibility-adjusted reproduction number,
`E_deaths_{tm}` is the expected number of deaths on day t in country m,
`deaths_{tm}` is the observed death count,
`x_{tm}` is the covariate vector on day t in country m,
`X` is the collection of country-specific covariate matrices whose rows are the vectors `x_{tm}`,
`mu_m` is the country-specific baseline reproduction-number level,
`alpha` is the intervention-effect vector,
`alpha_hier` is the positive auxiliary parameter vector from which `alpha` is constructed,
`phi` is the negative-binomial overdispersion parameter,
`kappa` is the scale parameter in the prior for the country-specific baseline reproduction numbers `mu_m`,
`tau` controls the prior scale for the initial infection levels `y_m`,
`ifr_noise_m` is a multiplicative country-specific noise term in the death process,
`SI` is the serial-interval distribution,
`f` is the infection-to-death delay distribution,
`pop_m` is the population of country m,
`EpidemicStart_m` is the first day included in the death likelihood for country m,
`N_m` is the number of observed days for country m,
`N0` is the number of initial days whose latent infections are set equal to `y_m`,
`N2` is the total number of modeled days,
`P` is the number of intervention covariates,
`M` is the number of countries.

The reported case counts are included in the data but are not used in the likelihood of this version of the model.

Parameterization notes:
In `Exponential(lambda)`, `lambda` is the rate parameter, so `E[X] = 1 / lambda`.
In `Gamma(alpha, beta)`, `beta` is the rate parameter, so `E[X] = alpha / beta`.
In `NegBinomial2(mu, phi)`, `mu` is the mean and `phi` is the overdispersion parameter.
In `Normal(mu, sigma)`, `sigma` is a standard deviation.
