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

Example set of tests for `flag_as_ww_outliers()` #36

Closed kaitejohnson closed 2 months ago

kaitejohnson commented 2 months ago

@cbernalz Here is an example of how to write some tests for the R functions. I typically create a dummy dataset within the tests and then modify them to check and make sure the function is behaving as expected.