Skip to content

Commit

Permalink
Document ebola data
Browse files Browse the repository at this point in the history
  • Loading branch information
athowes authored and seabbs committed May 16, 2024
1 parent f47ef70 commit bcf2196
Showing 1 changed file with 15 additions and 5 deletions.
20 changes: 15 additions & 5 deletions R/data.R
Original file line number Diff line number Diff line change
@@ -1,8 +1,18 @@
#' Example epidist data
#' Ebola linelist data from Fang et al. (2016)
#'
#' Simulated outbreak data with interval censoring and right truncation.
#' Linelist data for the Ebola virus collected in Sierra Leone.
#'
#' @format A `data.table` with 200 rows and 17 columns.
#' @format A `tibble` with 8,358 rows and 8 columns:
#' \describe{
#' \item{id}{Unique identification number for the case}
#' \item{name}{Name as character, omitted}
#' \item{age}{Age as numeric}
#' \item{sex}{Sex as character, either "F", "M" or NA}
#' \item{date_of_symptom_onset}{The date symptoms began}
#' \item{date_of_sample_tested}{The date the sample was tested}
#' \item{district}{The district (ADM2)}
#' \item{chiefdom}{The chiefdom (ADM3)}
#' }
#' @family data
#' @source <https://github.com/epinowcast/epidist/tree/main/data-raw/create_test_data.R>
"example_obs"
#' @source <https://www.pnas.org/doi/full/10.1073/pnas.1518587113>
"ebola"

Check warning on line 18 in R/data.R

View workflow job for this annotation

GitHub Actions / lint-changed-files

file=R/data.R,line=18,col=8,[trailing_blank_lines_linter] Missing terminal newline.

0 comments on commit bcf2196

Please sign in to comment.