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

Parameterize weekday effect with a Dirichlet #42

Closed kaitejohnson closed 1 month ago

kaitejohnson commented 2 months ago

Problem

We are currently using a constrained simplex for the weekday effect with a normal prior for the mean of each element. It isn't clear how stan implements this under the hood, and would be better to sample directly from a Dirichlet

Thanks for the flag @damonbayer @dylanhmorris

seabbs commented 2 months ago

I assume you tried this before and couldn't get it to work as it is what the reference implementation does?

kaitejohnson commented 2 months ago

I don't even think I tried!