Skip to content

Commit 5021c44

Browse files
committed
differences for PR #139
1 parent 7eb7987 commit 5021c44

10 files changed

Lines changed: 90 additions & 5208 deletions

.DS_Store

-6 KB
Binary file not shown.

compare-interventions.md

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -248,13 +248,6 @@ contact_data <- socialmixr::contact_matrix(
248248
age.limits = c(0, 20, 40),
249249
symmetric = TRUE
250250
)
251-
```
252-
253-
``` output
254-
Removing participants that have contacts without age information. To change this behaviour, set the 'missing.contact.age' option
255-
```
256-
257-
``` r
258251
# prepare contact matrix
259252
contact_matrix <- t(contact_data$matrix)
260253

config.yaml

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

contact-matrices.md

Lines changed: 19 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -98,8 +98,16 @@ contact_data <- socialmixr::contact_matrix(
9898
)
9999
```
100100

101-
``` output
102-
Removing participants that have contacts without age information. To change this behaviour, set the 'missing.contact.age' option
101+
``` warning
102+
Warning: The `age.limits` argument of `contact_matrix()` is deprecated as of socialmixr
103+
1.0.0.
104+
ℹ Please use the `age_limits` argument instead.
105+
ℹ The deprecated feature was likely used in the socialmixr package.
106+
Please report the issue at
107+
<https://github.com/epiforecasts/socialmixr/issues>.
108+
This warning is displayed once per session.
109+
Call `lifecycle::last_lifecycle_warnings()` to see where this warning was
110+
generated.
103111
```
104112

105113
``` r
@@ -226,12 +234,11 @@ contact_data_zambia <- socialmixr::contact_matrix(
226234
)
227235
```
228236

229-
``` output
230-
Removing participants without age information. To change this behaviour, set the 'missing.participant.age' option
231-
```
232-
233-
``` output
234-
Removing participants that have contacts without age information. To change this behaviour, set the 'missing.contact.age' option
237+
``` warning
238+
Warning: Survey contains multiple observations per participant (4531 rows, 3576 unique
239+
participants).
240+
• Results will aggregate across all observations.
241+
ℹ Use `filter` to select by "Building_id".
235242
```
236243

237244
``` r
@@ -243,8 +250,8 @@ contact_data_zambia
243250
$matrix
244251
contact.age.group
245252
age.group [0,20) 20+
246-
[0,20) 3.650000 1.451168
247-
20+ 1.988136 2.461856
253+
[0,20) 3.766393 1.427100
254+
20+ 1.955162 2.642584
248255
249256
$demography
250257
age.group population proportion year
@@ -255,8 +262,8 @@ $demography
255262
$participants
256263
age.group participants proportion
257264
<char> <int> <num>
258-
1: [0,20) 180 0.08490566
259-
2: 20+ 1940 0.91509434
265+
1: [0,20) 244 0.08531469
266+
2: 20+ 2616 0.91468531
260267
```
261268

262269
``` r

disease-burden.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,21 @@ contact_data <- socialmixr::contact_matrix(
9393
age.limits = c(0, 20, 40),
9494
symmetric = TRUE
9595
)
96+
```
97+
98+
``` warning
99+
Warning: The `age.limits` argument of `contact_matrix()` is deprecated as of socialmixr
100+
1.0.0.
101+
ℹ Please use the `age_limits` argument instead.
102+
ℹ The deprecated feature was likely used in the socialmixr package.
103+
Please report the issue at
104+
<https://github.com/epiforecasts/socialmixr/issues>.
105+
This warning is displayed once per session.
106+
Call `lifecycle::last_lifecycle_warnings()` to see where this warning was
107+
generated.
108+
```
96109

110+
``` r
97111
# prepare contact matrix
98112
contact_matrix <- t(contact_data$matrix)
99113

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" "2026-01-09"
3-
"LICENSE.md" "14377518ee654005a18cf28549eb30e3" "site/built/LICENSE.md" "2026-01-09"
4-
"config.yaml" "a0c04c1d43ce0640c3ea333b140e89c8" "site/built/config.yaml" "2026-01-09"
5-
"index.md" "32bc80d6f4816435cc0e01540cb2a513" "site/built/index.md" "2026-01-09"
6-
"links.md" "8184cf4149eafbf03ce8da8ff0778c14" "site/built/links.md" "2026-01-09"
7-
"episodes/contact-matrices.Rmd" "9e9d596cf25f68a50522b15a234472ac" "site/built/contact-matrices.md" "2026-01-09"
8-
"episodes/simulating-transmission.Rmd" "539a63b7a617e7a40ad1c5dd9650d96f" "site/built/simulating-transmission.md" "2026-01-09"
9-
"episodes/model-choices.Rmd" "aa195e66455fb6a97b4930fd08c08001" "site/built/model-choices.md" "2026-01-09"
10-
"episodes/modelling-interventions.Rmd" "8b9d77d31ac2672f4278b780e3d943db" "site/built/modelling-interventions.md" "2026-01-09"
11-
"episodes/compare-interventions.Rmd" "2ef6697bbad9bcfb843ab9d50469123b" "site/built/compare-interventions.md" "2026-01-09"
12-
"episodes/vaccine-comparisons.Rmd" "bb9110b17b2b5cdc915df3f17eae15df" "site/built/vaccine-comparisons.md" "2026-01-09"
13-
"episodes/disease-burden.Rmd" "9deead362349c98be8f1d9380a7b975a" "site/built/disease-burden.md" "2026-01-09"
14-
"instructors/instructor-notes.md" "ca3834a1b0f9e70c4702aa7a367a6bb5" "site/built/instructor-notes.md" "2026-01-09"
15-
"learners/BF_measles.Rmd" "5725a25d664730bbce3736a3243c2182" "site/built/BF_measles.md" "2026-01-09"
16-
"learners/reference.md" "9e836f1ec999f95f55135cdd2c78d2e6" "site/built/reference.md" "2026-01-09"
17-
"learners/setup.md" "be1de7ec41f52f14d00bcb74e87b5046" "site/built/setup.md" "2026-01-09"
18-
"profiles/learner-profiles.md" "31b503c4b5bd1f0960ada730eca4a25e" "site/built/learner-profiles.md" "2026-01-09"
19-
"renv/profiles/lesson-requirements/renv.lock" "3a4dd221fcee1f60beb9e679efeae403" "site/built/renv.lock" "2026-01-09"
2+
"CODE_OF_CONDUCT.md" "549f00b0992a7743c2bc16ea6ce3db57" "site/built/CODE_OF_CONDUCT.md" "2026-02-03"
3+
"LICENSE.md" "14377518ee654005a18cf28549eb30e3" "site/built/LICENSE.md" "2026-02-03"
4+
"config.yaml" "a0c04c1d43ce0640c3ea333b140e89c8" "site/built/config.yaml" "2026-02-03"
5+
"index.md" "32bc80d6f4816435cc0e01540cb2a513" "site/built/index.md" "2026-02-03"
6+
"links.md" "8184cf4149eafbf03ce8da8ff0778c14" "site/built/links.md" "2026-02-03"
7+
"episodes/contact-matrices.Rmd" "9e9d596cf25f68a50522b15a234472ac" "site/built/contact-matrices.md" "2026-02-03"
8+
"episodes/simulating-transmission.Rmd" "539a63b7a617e7a40ad1c5dd9650d96f" "site/built/simulating-transmission.md" "2026-02-03"
9+
"episodes/model-choices.Rmd" "aa195e66455fb6a97b4930fd08c08001" "site/built/model-choices.md" "2026-02-03"
10+
"episodes/modelling-interventions.Rmd" "8b9d77d31ac2672f4278b780e3d943db" "site/built/modelling-interventions.md" "2026-02-03"
11+
"episodes/compare-interventions.Rmd" "2ef6697bbad9bcfb843ab9d50469123b" "site/built/compare-interventions.md" "2026-02-03"
12+
"episodes/vaccine-comparisons.Rmd" "bb9110b17b2b5cdc915df3f17eae15df" "site/built/vaccine-comparisons.md" "2026-02-03"
13+
"episodes/disease-burden.Rmd" "9deead362349c98be8f1d9380a7b975a" "site/built/disease-burden.md" "2026-02-03"
14+
"instructors/instructor-notes.md" "ca3834a1b0f9e70c4702aa7a367a6bb5" "site/built/instructor-notes.md" "2026-02-03"
15+
"learners/BF_measles.Rmd" "5725a25d664730bbce3736a3243c2182" "site/built/BF_measles.md" "2026-02-03"
16+
"learners/reference.md" "9e836f1ec999f95f55135cdd2c78d2e6" "site/built/reference.md" "2026-02-03"
17+
"learners/setup.md" "be1de7ec41f52f14d00bcb74e87b5046" "site/built/setup.md" "2026-02-03"
18+
"profiles/learner-profiles.md" "31b503c4b5bd1f0960ada730eca4a25e" "site/built/learner-profiles.md" "2026-02-03"
19+
"renv/profiles/lesson-requirements/renv.lock" "334a199c1446a63d2798255d1144007c" "site/built/renv.lock" "2026-02-03"

modelling-interventions.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,21 @@ cm_results <- socialmixr::contact_matrix(
9494
age.limits = c(0, 15, 65),
9595
symmetric = TRUE
9696
)
97+
```
98+
99+
``` warning
100+
Warning: The `age.limits` argument of `contact_matrix()` is deprecated as of socialmixr
101+
1.0.0.
102+
ℹ Please use the `age_limits` argument instead.
103+
ℹ The deprecated feature was likely used in the socialmixr package.
104+
Please report the issue at
105+
<https://github.com/epiforecasts/socialmixr/issues>.
106+
This warning is displayed once per session.
107+
Call `lifecycle::last_lifecycle_warnings()` to see where this warning was
108+
generated.
109+
```
97110

111+
``` r
98112
# transpose contact matrix
99113
cm_matrix <- t(cm_results$matrix)
100114

0 commit comments

Comments
 (0)