Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use the linelist output with linelist::tags_df() from episode 2 as input for episode 3 #101

Open
avallecam opened this issue Jul 29, 2024 · 0 comments
Labels
clean-validation set of issues about the clean-validation episode priority

Comments

@avallecam
Copy link
Member

this will show the connection between linelist and incidence2 more clearly

library(outbreaks)
library(tidyverse)
library(linelist)

ebola <- outbreaks::ebola_sim_clean %>% pluck("linelist")

ebola %>% 
  as_tibble() %>% 
  # tag
  linelist::make_linelist(
    id = "case_id",
    date_onset = "date_of_onset",
    date_admission = "date_of_hospitalisation",
    gender = "gender"
  ) %>%
  # use tagged-only
  linelist::tags_df() %>%
  # analyse
  incidence2::incidence("date_onset", groups = c("gender")) %>%
  plot(angle = 45)

Created on 2024-07-29 with reprex v2.1.0

@avallecam avallecam added priority clean-validation set of issues about the clean-validation episode labels Oct 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
clean-validation set of issues about the clean-validation episode priority
Projects
Status: No status
Development

No branches or pull requests

1 participant