@@ -87,13 +87,13 @@ The R package `{socialmixr}` contains functions which can estimate contact matri
8787polymod <- socialmixr::polymod
8888```
8989
90- Then we can obtain the contact matrix for the age categories we want by specifying ` age.limits ` .
90+ Then we can obtain the contact matrix for the age categories we want by specifying ` age_limits ` .
9191
9292``` {r polymod_uk, echo = TRUE}
9393contact_data <- socialmixr::contact_matrix(
9494 survey = polymod,
9595 countries = "United Kingdom",
96- age.limits = c(0, 20, 40),
96+ age_limits = c(0, 20, 40),
9797 symmetric = TRUE
9898)
9999contact_data
@@ -184,7 +184,7 @@ Similar to the code above, to access vector values within a dataframe, you can u
184184contact_data_zambia <- socialmixr::contact_matrix(
185185 survey = zambia_sa_survey,
186186 countries = "Zambia", # key argument
187- age.limits = c(0, 20),
187+ age_limits = c(0, 20),
188188 symmetric = TRUE
189189)
190190
@@ -319,7 +319,7 @@ Normalisation can be performed by the function `contact_matrix()` in `{socialmix
319319contact_data_split <- socialmixr::contact_matrix(
320320 survey = polymod,
321321 countries = "United Kingdom",
322- age.limits = c(0, 20, 40),
322+ age_limits = c(0, 20, 40),
323323 symmetric = TRUE,
324324 split = TRUE
325325)
0 commit comments