Skip to content

Commit 12f4fea

Browse files
committed
differences for PR #112
1 parent a858d58 commit 12f4fea

File tree

7 files changed

+31
-5236
lines changed

7 files changed

+31
-5236
lines changed

.DS_Store

-6 KB
Binary file not shown.

BF_measles.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -802,7 +802,7 @@ controlling the epidemic.
802802
# Load new infections data for each scenario
803803
data_vaccine <- epidemics::new_infections(
804804
output3,
805-
compartments_from_susceptible = "vaccinated",
805+
exclude_compartments = "vaccinated",
806806
by_group = TRUE
807807
)
808808

config.yaml

Lines changed: 0 additions & 86 deletions
This file was deleted.

md5sum.txt

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
"file" "checksum" "built" "date"
2-
"CODE_OF_CONDUCT.md" "549f00b0992a7743c2bc16ea6ce3db57" "site/built/CODE_OF_CONDUCT.md" "2025-08-06"
3-
"LICENSE.md" "14377518ee654005a18cf28549eb30e3" "site/built/LICENSE.md" "2025-08-06"
4-
"config.yaml" "a0c04c1d43ce0640c3ea333b140e89c8" "site/built/config.yaml" "2025-08-06"
5-
"index.md" "32bc80d6f4816435cc0e01540cb2a513" "site/built/index.md" "2025-08-06"
6-
"links.md" "8184cf4149eafbf03ce8da8ff0778c14" "site/built/links.md" "2025-08-06"
7-
"episodes/contact-matrices.Rmd" "19856620d33f9b7f4e8ee312460494f1" "site/built/contact-matrices.md" "2025-08-06"
8-
"episodes/simulating-transmission.Rmd" "a416834465425e20bbd0a32afc6c2d32" "site/built/simulating-transmission.md" "2025-08-06"
9-
"episodes/model-choices.Rmd" "aa195e66455fb6a97b4930fd08c08001" "site/built/model-choices.md" "2025-08-06"
10-
"episodes/modelling-interventions.Rmd" "3ca4185369a49bdf75828cd5ac43d5af" "site/built/modelling-interventions.md" "2025-08-06"
11-
"episodes/compare-interventions.Rmd" "2ef6697bbad9bcfb843ab9d50469123b" "site/built/compare-interventions.md" "2025-08-06"
12-
"episodes/vaccine-comparisons.Rmd" "a8fc8f333fc466dac9f53c5a17c24760" "site/built/vaccine-comparisons.md" "2025-08-06"
13-
"episodes/disease-burden.Rmd" "05199c08e0f4394b341dd67b00f7a130" "site/built/disease-burden.md" "2025-08-06"
14-
"instructors/instructor-notes.md" "ca3834a1b0f9e70c4702aa7a367a6bb5" "site/built/instructor-notes.md" "2025-08-06"
15-
"learners/BF_measles.Rmd" "96bb097b26f09276c095e12f5c9927dc" "site/built/BF_measles.md" "2025-08-06"
16-
"learners/reference.md" "9e836f1ec999f95f55135cdd2c78d2e6" "site/built/reference.md" "2025-08-06"
17-
"learners/setup.md" "ba4314eaa33c1a26c7005999ae684326" "site/built/setup.md" "2025-08-06"
18-
"profiles/learner-profiles.md" "31b503c4b5bd1f0960ada730eca4a25e" "site/built/learner-profiles.md" "2025-08-06"
19-
"renv/profiles/lesson-requirements/renv.lock" "d3ac3b591e433d9d022e6b261165e086" "site/built/renv.lock" "2025-08-06"
2+
"CODE_OF_CONDUCT.md" "549f00b0992a7743c2bc16ea6ce3db57" "site/built/CODE_OF_CONDUCT.md" "2025-08-19"
3+
"LICENSE.md" "14377518ee654005a18cf28549eb30e3" "site/built/LICENSE.md" "2025-08-19"
4+
"config.yaml" "a0c04c1d43ce0640c3ea333b140e89c8" "site/built/config.yaml" "2025-08-19"
5+
"index.md" "32bc80d6f4816435cc0e01540cb2a513" "site/built/index.md" "2025-08-19"
6+
"links.md" "8184cf4149eafbf03ce8da8ff0778c14" "site/built/links.md" "2025-08-19"
7+
"episodes/contact-matrices.Rmd" "19856620d33f9b7f4e8ee312460494f1" "site/built/contact-matrices.md" "2025-08-19"
8+
"episodes/simulating-transmission.Rmd" "a416834465425e20bbd0a32afc6c2d32" "site/built/simulating-transmission.md" "2025-08-19"
9+
"episodes/model-choices.Rmd" "aa195e66455fb6a97b4930fd08c08001" "site/built/model-choices.md" "2025-08-19"
10+
"episodes/modelling-interventions.Rmd" "4ddf2a3e860dc11ba7a29ad20228eb3a" "site/built/modelling-interventions.md" "2025-08-19"
11+
"episodes/compare-interventions.Rmd" "2ef6697bbad9bcfb843ab9d50469123b" "site/built/compare-interventions.md" "2025-08-19"
12+
"episodes/vaccine-comparisons.Rmd" "bb9110b17b2b5cdc915df3f17eae15df" "site/built/vaccine-comparisons.md" "2025-08-19"
13+
"episodes/disease-burden.Rmd" "05199c08e0f4394b341dd67b00f7a130" "site/built/disease-burden.md" "2025-08-19"
14+
"instructors/instructor-notes.md" "ca3834a1b0f9e70c4702aa7a367a6bb5" "site/built/instructor-notes.md" "2025-08-19"
15+
"learners/BF_measles.Rmd" "5725a25d664730bbce3736a3243c2182" "site/built/BF_measles.md" "2025-08-19"
16+
"learners/reference.md" "9e836f1ec999f95f55135cdd2c78d2e6" "site/built/reference.md" "2025-08-19"
17+
"learners/setup.md" "ba4314eaa33c1a26c7005999ae684326" "site/built/setup.md" "2025-08-19"
18+
"profiles/learner-profiles.md" "31b503c4b5bd1f0960ada730eca4a25e" "site/built/learner-profiles.md" "2025-08-19"
19+
"renv/profiles/lesson-requirements/renv.lock" "aa00df7ee18b17b5e2c37de9890a2c42" "site/built/renv.lock" "2025-08-19"

modelling-interventions.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -430,7 +430,7 @@ From the plot, we see that the peak number of total number of infectious individ
430430
::::::::::::::::::::::::::::::::::::::::::::::::
431431

432432
Lastly, if you want to plot new infections from an `epidemics::model_default()` that includes a `vaccination` intervention, you need to add one argument to `epidemics::new_infections()`:
433-
Set `compartments_from_susceptible = "vaccinated"` to tell the function that people moving from "susceptible" to "vaccinated" are not becoming infected. This ensures vaccinated individuals aren't counted as infections.
433+
Set `exclude_compartments = "vaccinated"` to tell the function that people moving from "susceptible" to "vaccinated" are not becoming infected. This ensures vaccinated individuals aren't counted as infections.
434434

435435
::::::::::::::::::::: spoiler
436436

@@ -440,13 +440,13 @@ Note that if we add `by_group = FALSE` in `epidemics::new_infections()`, we get
440440
``` r
441441
infections_baseline <- epidemics::new_infections(
442442
data = output_baseline,
443-
compartments_from_susceptible = "vaccinated", # if vaccination
443+
exclude_compartments = "vaccinated", # if vaccination
444444
by_group = FALSE
445445
)
446446

447447
infections_intervention <- epidemics::new_infections(
448448
data = output_vaccinate,
449-
compartments_from_susceptible = "vaccinated", # if vaccination
449+
exclude_compartments = "vaccinated", # if vaccination
450450
by_group = FALSE
451451
)
452452

0 commit comments

Comments
 (0)