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

Vignette showing how to modify the model #138

Open kaitejohnson opened 2 months ago

kaitejohnson commented 2 months ago

Goal

@ChiragKumar9's suggestion to show how to edit the guts of the stan model to say do something like add a quadratic term to the AR process in $R(t)$. This package isn't meant to be a model factory/ meta programming package, but it is reasonable that an advanced user might want to add a component that they need for their specific use case.

Think its worth having a discussion around whether we want to show this-- I think its really useful for making contributions to the model development accessible. Wondering if @cbernalz has thoughts since his development on the spatial components represents this, and he had to do it without a vignette showing how one might go about this!