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

Handle NAs in wastewater data #97

Closed kaitejohnson closed 2 months ago

kaitejohnson commented 3 months ago

Problem

The model expects no NA values in the wastewater data, but its possible (likely) that when a measurement is below the LOD, it will be NA. Since these are censored and the model treats them as such, we don't want to just remove them. Instead, we need to be really explicit that the model expects only numeric values for concentrations and give directions to the user as to how to pre-process their data to replace observations below the LOD with a value that is below the LOD.

Requirements

Context