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

Add functionality to handle no wastewater data #154

Closed kaitejohnson closed 1 month ago

kaitejohnson commented 2 months ago

Goal

Currently, we can run the model without using the wastewater observations, but the package will error if nothing is passed in to the ww_data arg. This should not be the case. Instead, as a temporary solution we should pass in an empty vector that will not get used by stan, and allow the unit tests forbidding the model to be run to be skipped.

Features:

@dylanhmorris my instinct is that this would be best addressed after #149, since we will be able to properly default to n_subpops=1 whenever n_sites = 0. Let me know what you think.