Skip to content

new pipeline to access social contact matrix data #116

@avallecam

Description

@avallecam

Thanks to email report from Kornellius I learned about latest updates in socialmixr introducing contactsurveys package

Please place an "x" in all the boxes that apply

  • I have the most recent version of this package and R
  • I have found a bug
  • I have a reproducible example
  • I want to request a new feature

Please include a brief description of the problem with a code example:

# pak::pak("epiforecasts/socialmixr")
# pak::pak("epiforecasts/contactsurveys")
peru_doi <- "https://doi.org/10.5281/zenodo.1095664"
# peru_survey <- get_survey(peru_doi)
## --> We now recommend:
peru_survey <- contactsurveys::download_survey(peru_doi)
peru_data <- socialmixr::load_survey(peru_survey)
peru_data

socialmixr::contact_matrix(survey = peru_data,age.limits = c(0,20,40))

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions