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 hosp_only model and demo #4

Merged
merged 30 commits into from
Sep 3, 2024
Merged

Add hosp_only model and demo #4

merged 30 commits into from
Sep 3, 2024

Conversation

damonbayer
Copy link
Collaborator

@damonbayer damonbayer commented Aug 22, 2024

This PR recreates "Model 2" from the wastewater-informed-covid-forecasting project. The model is described here. Stan code for the model is here.

The tutorial demonstrates how to use the model with stan_data generated in the wastewater-informed-covid-forecasting project. As such, recreating any analysis from that project should be relatively straightforward.

@damonbayer damonbayer marked this pull request as ready for review August 29, 2024 21:52
@damonbayer
Copy link
Collaborator Author

@dylanhmorris @sbidari Ready for your review. I will make an additional PR to add the Stan model comparison to this notebook.

Copy link
Collaborator

@sbidari sbidari left a comment

Choose a reason for hiding this comment

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

I have a question regarding the scope of this demo. Is the idea to demonstrate the use of pyrenew to (re)build the models in the wastewater repo? Or just reproduce the results for comparison with the stan model?

transforms=transformation.PowerTransform(-2),
)

uot = stan_data["uot"]
Copy link
Collaborator

Choose a reason for hiding this comment

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

unobserved_time = stan_data["uot"] and throughout

) as file:
stan_data = json.load(file)

def convert_to_logmean_log_sd(mean, sd):
Copy link
Collaborator

Choose a reason for hiding this comment

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

This function can be added to plotting.py with renaming of plotting.py or put in a separate file to share across model(s)

@damonbayer damonbayer merged commit 36e2a7a into main Sep 3, 2024
1 check passed
@damonbayer damonbayer deleted the hosp_only_ww_model branch September 3, 2024 16:32
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.

Create Hosp Only Model from cdcgov/wastewater-informed-covid-forecasting
2 participants