Skip to content

Add callout defining vaccination rate before vaccination() model call#178

Merged
avallecam merged 2 commits into
mainfrom
add-vaccination-rate-callout
Jul 23, 2026
Merged

Add callout defining vaccination rate before vaccination() model call#178
avallecam merged 2 commits into
mainfrom
add-vaccination-rate-callout

Conversation

@avallecam

@avallecam avallecam commented Jul 21, 2026

Copy link
Copy Markdown
Member

Learners see nu used in epidemics::vaccination() without a definition; this adds the formula and a worked example (age 65+, Feb 2023, UK) just before the object is passed into model_default().

  • Please check if the PR fulfills these requirements
  • I have read the CONTRIBUTING guidelines
  • A new item has been added to NEWS.md
  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been added / updated (for bug fixes / features)
  • Checks have been run locally and pass
  • What kind of change does this PR introduce? (Bug fix, feature, docs update, ...)

    • add an example to get the vaccination rate
  • What is the current behavior? (You can also link to an open issue here)

    • direct usage of 0.01 as vaccination rate
  • What is the new behavior (if this is a feature change)?

    • add a calloutbox to explain, as also intended by the box on "effect of interventions on contacts"
  • Does this PR introduce a breaking change? (What changes might users need to make in their application due to this PR?)

    • No
  • Other information:

Learners see `nu` used in epidemics::vaccination() without a definition;
this adds the formula and a worked example (age 65+, Feb 2021) just
before the object is passed into model_default().

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@github-actions

Copy link
Copy Markdown
Contributor

🆗 Pre-flight checks passed 😃

This pull request has been checked and contains no modified workflow files or spoofing.

Results of any additional workflows will appear here when they are done.

Comment thread episodes/modelling-interventions.Rmd Outdated
Comment thread episodes/modelling-interventions.Rmd
Co-authored-by: Andree Valle Campos <avallecam@gmail.com>
github-actions Bot pushed a commit that referenced this pull request Jul 22, 2026
@avallecam
avallecam requested a review from Degoot-AM July 22, 2026 11:37
@avallecam

Copy link
Copy Markdown
Member Author

hi @Degoot-AM just tagging to have your brief review of the writing in this specific added box. I'd like to merge this tomorrow EOD.

@Degoot-AM Degoot-AM left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Good example to clarify this notation of nu!

@avallecam
avallecam merged commit b95d151 into main Jul 23, 2026
7 checks passed
@avallecam
avallecam deleted the add-vaccination-rate-callout branch July 23, 2026 11:21
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.

2 participants