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
18 stars 2 forks source link

2024-08-07 update : adding matrix normalization func. and using AR1 in spatial func. #53

Closed cbernalz closed 3 months ago

cbernalz commented 3 months ago

This PR is regarding two issues : https://github.com/CDCgov/ww-inference-model/issues/52#issue-2451792110 and https://github.com/CDCgov/ww-inference-model/issues/50#issue-2451428577 .

kaitejohnson commented 3 months ago

This is looking great! I just realized that we should also add the ar1 process call to construct_spatial_rt_process.stan.

https://github.com/CDCgov/ww-inference-model/blob/5e2403d824097c17c3f63ea8637575fc3e59f9df/inst/stan/functions/construct_spatial_rt.stan#L29

I think for that one, you will have to for z pass in the iid normal deviation (not with the separate sd). Think you can write as is and pass in 1 for the sd.

Update: ignore this comment. I misunderstood how we were doing this here.