Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add some model components #5

Merged
merged 107 commits into from
Jul 10, 2024
Merged

Add some model components #5

merged 107 commits into from
Jul 10, 2024

Conversation

kaitejohnson
Copy link
Collaborator

@kaitejohnson kaitejohnson commented Jun 30, 2024

The goal of this PR is to get the bare minimum modeling and immediate pre-processing and post-processing functionality into the modeling package codebase, using the functions from the other two ww modeling packages and modifying as needed.

The vignette is written such that it takes in package data meeting the minimum requirements for the input count data (in this case hospital admissions) and the input wastewater data. Then we apply pre-processing to get the additional information that the stan model needs in order to fit the model. We then pass into the model the input pmfs that need to be passed in as data, but are COVID and hospital admissions specific.

A note that this first draft of the package isn't intended to provide significant additional functionality from the modeling in https://github.com/CDCgov/wastewater-informed-covid-forecasting/tree/prod 's cfaforecastrenewalww. We want to make it as easy as possible to run the existing model, as is. The goal is to make it easier for a user to see where they would upload their data, what requirements that data must have, and where they could swap in different pmfs, parameters, and priors to fit the model to say a different pathogen or with different parameters.

Remaining new issues for N sprint (from meta issue #6). These components are out of scope for this PR

Copy link
Collaborator

@dylanhmorris dylanhmorris left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A few questions / typo catches @kaitejohnson

vignettes/wwinference.Rmd Outdated Show resolved Hide resolved
R/delay_distribs.R Outdated Show resolved Hide resolved
R/figures.R Outdated Show resolved Hide resolved
R/postprocess.R Outdated Show resolved Hide resolved
Copy link
Collaborator

@dylanhmorris dylanhmorris left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Using this review to bring the 5 remaining unresolved conversations back to the top @kaitejohnson

R/postprocess.R Outdated Show resolved Hide resolved
R/figures.R Outdated Show resolved Hide resolved
R/delay_distribs.R Outdated Show resolved Hide resolved
R/figures.R Outdated Show resolved Hide resolved
vignettes/wwinference.Rmd Outdated Show resolved Hide resolved
@kaitejohnson
Copy link
Collaborator Author

Ok @dylanhmorris I moved the functions needed to produce the delay distributions for COVID into data-raw/covid_pmfs.R so they are not a part of this package function.

Also made the other aesthetic/documentation changes. Let me know if this looks okay and thanks for the thorough review!

Copy link
Collaborator

@dylanhmorris dylanhmorris left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Need to fix function namespace references in covid_pmfs.R

data-raw/covid_pmfs.R Outdated Show resolved Hide resolved
data-raw/covid_pmfs.R Outdated Show resolved Hide resolved
data-raw/covid_pmfs.R Show resolved Hide resolved
data-raw/covid_pmfs.R Outdated Show resolved Hide resolved
R/delay_distribs.R Outdated Show resolved Hide resolved
R/utils.R Outdated Show resolved Hide resolved
data-raw/covid_pmfs.R Outdated Show resolved Hide resolved
dylanhmorris
dylanhmorris previously approved these changes Jul 10, 2024
Copy link
Collaborator

@dylanhmorris dylanhmorris left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@kaitejohnson
Copy link
Collaborator Author

Sorry, just caught the namespace error and added to change log!

@kaitejohnson kaitejohnson merged commit 5be1f43 into main Jul 10, 2024
3 checks passed
@kaitejohnson kaitejohnson deleted the add-some-model-components branch July 10, 2024 18:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants