CDCgov / ww-inference-model

An in-development R package and a Bayesian hierarchical model jointly fitting multiple "local" wastewater data streams and "global" case count data to produce nowcasts and forecasts of both observations
https://cdcgov.github.io/ww-inference-model/
Apache License 2.0
16 stars 2 forks source link

Use `ar1.stan` in the new spatial functions #50

Closed kaitejohnson closed 2 months ago

kaitejohnson commented 2 months ago

Goal

We have built in functions to run an AR(1) process in stan, we should use them in the new functions such as spatial_rt_process.stan and construct_aux_site_rt.stan (e.g. https://github.com/CDCgov/ww-inference-model/blob/da8ae4320e63b22d9d5299a3520cc2570f2d9b12/inst/stan/functions/construct_aux_rt.stan#L26C2-L30C4).

Requirements