Skip to content

Commit

Permalink
Document example daily forecast flu
Browse files Browse the repository at this point in the history
  • Loading branch information
dylanhmorris committed Nov 13, 2024
1 parent 47ace12 commit b953076
Show file tree
Hide file tree
Showing 3 changed files with 47 additions and 4 deletions.
20 changes: 19 additions & 1 deletion R/data.R
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#' US census reference table with the addition of "US" for the
#' United States as a whole.
#'
#' @format ## `us_location_table`
#' @format
#' A tibble with 58 rows and 3 columns:
#' \describe{
#' \item{location_code}{2-character location code}
Expand All @@ -13,3 +13,21 @@
#' }
#' @source <https://www2.census.gov/geo/docs/reference/state.txt>, us_location_table.R
"us_location_table"

#' An example daily-resolution set of forecast trajectories for influenza.
#'
#' 53 US states and territories are represented, coded according to their
#' USPS two-letter abbreviations: the 50 US states, Puerto Rico,
#' the District of Columbia, and the US Virgin Islands. 100 randomly
#' chosen draws from an original MCMC sample of 4000 are provided
#'
#' @format
#' A tibble with 159,000 rows and 4 columns:
#' \describe{
#' \item{.draw}{Unique identifier for an individual MCMC draw.}
#' \item{date}{Date for a forecasted count.}
#' \item{hosp}{Forecasted count of hospital admissions.}
#' \item{location}{Location for a forecasted count.}
#' }
#' @source data-raw/example_daily_forecast_flu.R
"example_daily_forecast_flu"
28 changes: 28 additions & 0 deletions man/example_daily_forecast_flu.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 0 additions & 3 deletions man/us_location_table.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit b953076

Please sign in to comment.