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

Re #7 Add VoC component to seir fit #9

Open
wants to merge 8 commits into
base: master
Choose a base branch
from
Open

Re #7 Add VoC component to seir fit #9

wants to merge 8 commits into from

Conversation

sempwn
Copy link
Collaborator

@sempwn sempwn commented Mar 22, 2021

  • Implemented changes to introduce VoC into fitting and projections.
  • Updated version number and news to reflect changes
  • Ran R CMD check without errors

@sempwn sempwn requested a review from seananderson March 22, 2021 22:18
@seananderson
Copy link
Owner

Awesome. Thanks for putting this together. I'm wondering whether it would be more flexible to just have fit_seir() take a vector of relative reproduction ratios with one value per day (defaulting to a vector of 1s) rather than constructing the ramp within the Stan code. Then the user can make a ramp of any shape if needed and also accommodate more than one ramp if needed in the future. We could have a little helper function in R code to construct a linear (and/or logistic?) ramp that takes your named arguments. I could be convinced otherwise though.

@carolinecolijn
Copy link
Collaborator

carolinecolijn commented Mar 23, 2021 via email

@seananderson
Copy link
Owner

seananderson commented Mar 23, 2021 via email

@carolinecolijn
Copy link
Collaborator

carolinecolijn commented Mar 23, 2021 via email

@sempwn
Copy link
Collaborator Author

sempwn commented Mar 23, 2021

Agree I like the approach of including as a vector for more flexibility and incorporating helper functions for the f-segments and sampling fractions. I had previously created some code to do this so can recycle it. The other advantage is that we could potentially fit the transmissibility vector to external data on VoC, convert that into a vector and then apply to the model. I'm imagining we would want a couple of functions something like:

create_segments_vector(start_date,segments,total_days,values=NULL)

where if values are specified (like for the sample fraction) then each segment will take that value otherwise it will number each segment incrementally.

The other function could be:

create_ramp(start_date,total_days,start_ramp,ramp_length,ramp_max)

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