Skip to content

Commit 88e1a71

Browse files
committed
replace the argument on new infections with vaccination
1 parent 497f0a4 commit 88e1a71

File tree

4 files changed

+16
-16
lines changed

4 files changed

+16
-16
lines changed

instructors/data/04-practical-activity-2.R

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,18 +75,18 @@ epidemics::epidemic_peak(data = simulate_intervention)
7575
# step:
7676
# add intervention name
7777
# if your intervention is vaccination, then
78-
# activate the argument compartments_from_susceptible
78+
# activate the argument exclude_compartments
7979
# run and paste plot output in report
8080

8181
infections_baseline <- epidemics::new_infections(
8282
data = simulate_baseline,
83-
# compartments_from_susceptible = "vaccinated", # if vaccination
83+
# exclude_compartments = "vaccinated", # if vaccination
8484
by_group = FALSE # if TRUE, then age-stratified output
8585
)
8686

8787
infections_intervention <- epidemics::new_infections(
8888
data = simulate_intervention,
89-
# compartments_from_susceptible = "vaccinated", # if vaccination
89+
# exclude_compartments = "vaccinated", # if vaccination
9090
by_group = FALSE # if TRUE, then age-stratified output
9191
)
9292

instructors/data/04-practical-activity-3.R

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,18 +29,18 @@ epidemics::epidemic_peak(simulate_twointerventions)
2929
# step:
3030
# add intervention name
3131
# if your intervention is vaccination, then
32-
# activate the argument compartments_from_susceptible
32+
# activate the argument exclude_compartments
3333
# run and paste plot output in report
3434

3535
infections_baseline <- epidemics::new_infections(
3636
data = simulate_baseline,
37-
# compartments_from_susceptible = "vaccinated", # if vaccination
37+
# exclude_compartments = "vaccinated", # if vaccination
3838
by_group = FALSE # if TRUE, then age-stratified output
3939
)
4040

4141
infections_twointerventions <- epidemics::new_infections(
4242
data = simulate_twointerventions,
43-
# compartments_from_susceptible = "vaccinated", # if vaccination
43+
# exclude_compartments = "vaccinated", # if vaccination
4444
by_group = FALSE # if TRUE, then age-stratified output
4545
)
4646

instructors/fig/04-practical-instructor-2.R

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -92,18 +92,18 @@ epidemics::epidemic_peak(data = simulate_intervention)
9292
# step:
9393
# add intervention name
9494
# if your intervention is vaccination, then
95-
# activate the argument compartments_from_susceptible
95+
# activate the argument exclude_compartments
9696
# run and paste plot output in report
9797

9898
infections_baseline <- epidemics::new_infections(
9999
data = simulate_baseline,
100-
# compartments_from_susceptible = "vaccinated", # if vaccination
100+
# exclude_compartments = "vaccinated", # if vaccination
101101
by_group = FALSE # if TRUE, then age-stratified output
102102
)
103103

104104
infections_intervention <- epidemics::new_infections(
105105
data = simulate_intervention,
106-
# compartments_from_susceptible = "vaccinated", # if vaccination
106+
# exclude_compartments = "vaccinated", # if vaccination
107107
by_group = FALSE # if TRUE, then age-stratified output
108108
)
109109

@@ -197,13 +197,13 @@ epidemics::epidemic_peak(data = simulate_intervention)
197197

198198
infections_baseline <- epidemics::new_infections(
199199
data = simulate_baseline,
200-
# compartments_from_susceptible = "vaccinated", # if vaccination
200+
# exclude_compartments = "vaccinated", # if vaccination
201201
by_group = FALSE # if TRUE, then age-stratified output
202202
)
203203

204204
infections_intervention <- epidemics::new_infections(
205205
data = simulate_intervention,
206-
# compartments_from_susceptible = "vaccinated", # if vaccination
206+
# exclude_compartments = "vaccinated", # if vaccination
207207
by_group = FALSE # if TRUE, then age-stratified output
208208
)
209209

@@ -295,13 +295,13 @@ epidemics::epidemic_peak(data = simulate_intervention)
295295

296296
infections_baseline <- epidemics::new_infections(
297297
data = simulate_baseline,
298-
compartments_from_susceptible = "vaccinated", # if vaccination
298+
exclude_compartments = "vaccinated", # if vaccination
299299
by_group = FALSE # if TRUE, then age-stratified output
300300
)
301301

302302
infections_intervention <- epidemics::new_infections(
303303
data = simulate_intervention,
304-
compartments_from_susceptible = "vaccinated", # if vaccination
304+
exclude_compartments = "vaccinated", # if vaccination
305305
by_group = FALSE # if TRUE, then age-stratified output
306306
)
307307

instructors/fig/04-practical-instructor-3.R

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,18 +33,18 @@ epidemics::epidemic_peak(simulate_twointerventions)
3333
# step:
3434
# add intervention name
3535
# if your intervention is vaccination, then
36-
# activate the argument compartments_from_susceptible
36+
# activate the argument exclude_compartments
3737
# run and paste plot output in report
3838

3939
infections_baseline <- epidemics::new_infections(
4040
data = simulate_baseline,
41-
compartments_from_susceptible = "vaccinated", # if vaccination #<CHANGE-BY-ROOM>
41+
exclude_compartments = "vaccinated", # if vaccination #<CHANGE-BY-ROOM>
4242
by_group = FALSE # if TRUE, then age-stratified output
4343
)
4444

4545
infections_twointerventions <- epidemics::new_infections(
4646
data = simulate_twointerventions,
47-
compartments_from_susceptible = "vaccinated", # if vaccination #<CHANGE-BY-ROOM>
47+
exclude_compartments = "vaccinated", # if vaccination #<CHANGE-BY-ROOM>
4848
by_group = FALSE # if TRUE, then age-stratified output
4949
)
5050

0 commit comments

Comments
 (0)