R/data.R

#' A full valid entry for national ILI forecasting
#'
#' A data.frame containing a valid entry for national ILI forecasting
#'
#' @format A dta frame with 8019 rows and 7 variables:
#' \describe{
#'   \item{location}{character vector of locations}
#'   \item{target}{character vector of targets}
#'   \item{type}{character vector with elements "Bin" or "Point"}
#'   \item{unit}{character vector with elements "percent" or "week"}
#'   \item{bin_start_incl}{character vector with forecast bin start value (inclusive)}
#'   \item{bin_end_notincl}{character vector the forecast bin end value}
#'   \item{value}{numeric vector with probabilities or point forecasts}
#' }
"full_entry"


#' A minimal valid entry for national ILI forecasting
#'
#' A data.frame containing a valid entry for national ILI forecasting
#'
#' @format A dta frame with 729 rows and 7 variables:
#' \describe{
#'   \item{location}{character vector of locations}
#'   \item{target}{character vector of targets}
#'   \item{type}{character vector with elements "Bin" or "Point"}
#'   \item{unit}{character vector with elements "percent" or "week"}
#'   \item{bin_start_incl}{character vector with forecast bin start value (inclusive)}
#'   \item{bin_end_notincl}{character vector the forecast bin end value}
#'   \item{value}{numeric vector with probabilities or point forecasts}
#' }
"minimal_entry"


#' A valid ILINet submission
#'
#' A data.frame containing a valid submission of national ILINet data
#'
#' @format A dta frame with 363 rows and 3 variables:
#' \describe{
#'   \item{location}{character vector of locations}
#'   \item{week}{numeric vector of MMWR weeks}
#'   \item{ILI}{numeric vector of weighted ILI percentage}
#' }
"valid_ILI"

#' A valid state ILINet submission
#'
#' A data.frame containing a valid submission of state ILI data
#'
#' @format A dta frame with 1860 rows and 3 variables:
#' \describe{
#'   \item{location}{character vector of locations}
#'   \item{week}{numeric vector of MMWR weeks}
#'   \item{ILI}{numeric vector of ILI percentage}
#' }
"valid_ILI_state"

#' A valid FluSurv-NET submission
#'
#' A data.frame containing a valid submission of FluSurv-Net data
#'
#' @format A dta frame with 180 rows and 3 variables:
#' \describe{
#'   \item{age_grp}{character vector of age groups}
#'   \item{week}{numeric vector of MMWR weeks}
#'   \item{weeklyrate}{numeric vector of weighted ILI percentage}
#' }
"valid_observe_hosp"


#' Observed national ILINet truth for 2015/2016 influenza season
#'
#' A data.frame containing the observed national ILI forecasting truth for the
#' 2015/2016 influenza season
#'
#' @format A dta frame with 1310 rows and 4 variables:
#' \describe{
#'   \item{target}{character vector of targets}
#'   \item{location}{character vector of locations}
#'   \item{forecast_week}{numeric vector of MMWR week forecasted value is based on}
#'   \item{bin_start_incl}{numeric vector of observed truth}
#' }
"truth_1516"

#' Observed state ILI truth for 2016/2017 influenza season
#'
#' A data.frame containing the observed state ILI forecasting truth for the
#' 2016/2017 influenza season
#'
#' @format A dta frame with 3992 rows and 4 variables:
#' \describe{
#'   \item{target}{character vector of targets}
#'   \item{location}{character vector of locations}
#'   \item{forecast_week}{numeric vector of MMWR week forecasted value is based on}
#'   \item{bin_start_incl}{numeric vector of observed truth}
#' }
"state_truth_1617"

#' Observed FluSurv-Net hospitalizations truth for 2016/2017 influenza season
#'
#' A data.frame containing the observed national hospitalization forecasting 
#' truth for the 2016/2017 influenza season
#'
#' @format A dta frame with 480 rows and 4 variables:
#' \describe{
#'   \item{target}{character vector of targets}
#'   \item{age_grp}{character vector of age groups}
#'   \item{forecast_week}{numeric vector of MMWR week forecasted value is based on}
#'   \item{bin_start_incl}{numeric vector of observed truth}
#' }
"hosp_truth_1617"

#' Expanded national ILINet truth for 2015/2016 influenza season
#'
#' A data.frame containing the observed national ILI forecasting truth for the 
#' 2015/2016 influenza season, expanded for one bin around week targets and 
#' five bins around percent targets
#'
#' @format A dta frame with 14212 rows and 4 variables:
#' \describe{
#'   \item{target}{character vector of targets}
#'   \item{location}{character vector of locations}
#'   \item{forecast_week}{numeric vector of MMWR week forecasted value is based on}
#'   \item{bin_start_incl}{numeric vector of observed truth}
#' }
"valid_exp_truth"

#' A full valid national ILINet entry containing forecast week for scoring
#'
#' A data.frame containing a scorable valid entry for national ILI forecasting
#'
#' @format A dta frame with 8019 rows and 8 variables:
#' \describe{
#'   \item{location}{character vector of locations}
#'   \item{target}{character vector of targets}
#'   \item{type}{character vector with elements "Bin" or "Point"}
#'   \item{unit}{character vector with elements "percent" or "week"}
#'   \item{bin_start_incl}{character vector with forecast bin start value (inclusive)}
#'   \item{bin_end_notincl}{character vector the forecast bin end value}
#'   \item{value}{numeric vector with probabilities or point forecasts}
#'   \item{forecast_week}{numeric vector of MMWR week forecasted value is based on}
#' }
"full_entry_score"

#' A full valid hospitalization forecast entry containing forecast week for 
#' scoring
#'
#' A data.frame containing a scorable valid entry for hospitalization 
#' forecasting
#'
#' @format A dta frame with 6466 rows and 8 variables:
#' \describe{
#'   \item{age_grp}{character vector of age group}
#'   \item{target}{character vector of targets}
#'   \item{type}{character vector with elements "Bin" or "Point"}
#'   \item{unit}{character vector with elements "percent" or "week"}
#'   \item{bin_start_incl}{character vector with forecast bin start value (inclusive)}
#'   \item{bin_end_notincl}{character vector the forecast bin end value}
#'   \item{value}{numeric vector with probabilities or point forecasts}
#'   \item{forecast_week}{numeric vector of MMWR week forecasted value is based on}
#' }
"full_entry_hosp_score"

#' A full valid entry for hospitalization forecasting
#'
#' A data.frame containing a valid entry for hospitalization forecasting
#'
#' @format A dta frame with 6466 rows and 7 variables:
#' \describe{
#'   \item{age_grp}{character vector of age group}
#'   \item{target}{character vector of targets}
#'   \item{type}{character vector with elements "Bin" or "Point"}
#'   \item{unit}{character vector with elements "percent" or "week"}
#'   \item{bin_start_incl}{character vector with forecast bin start value (inclusive)}
#'   \item{bin_end_notincl}{character vector the forecast bin end value}
#'   \item{value}{numeric vector with probabilities or point forecasts}
#' }
"full_entry_hosp"

#' A full valid state ILI forecast entry containing forecast week for 
#' scoring
#'
#' A data.frame containing a scorable valid entry for state ILI
#' forecasting
#'
#' @format A dta frame with 24290 rows and 8 variables:
#' \describe{
#'   \item{location}{character vector of location}
#'   \item{target}{character vector of targets}
#'   \item{type}{character vector with elements "Bin" or "Point"}
#'   \item{unit}{character vector with elements "percent" or "week"}
#'   \item{bin_start_incl}{character vector with forecast bin start value (inclusive)}
#'   \item{bin_end_notincl}{character vector the forecast bin end value}
#'   \item{value}{numeric vector with probabilities or point forecasts}
#'   \item{forecast_week}{numeric vector of MMWR week forecasted value is based on}
#' }
"full_entry_state_score"

#' A full valid entry for state ILI forecasting
#'
#' A data.frame containing a valid entry for state ILI forecasting
#'
#' @format A dta frame with 24290 rows and 7 variables:
#' \describe{
#'   \item{location}{character vector of location}
#'   \item{target}{character vector of targets}
#'   \item{type}{character vector with elements "Bin" or "Point"}
#'   \item{unit}{character vector with elements "percent" or "week"}
#'   \item{bin_start_incl}{character vector with forecast bin start value (inclusive)}
#'   \item{bin_end_notincl}{character vector the forecast bin end value}
#'   \item{value}{numeric vector with probabilities or point forecasts}
#' }
"full_entry_state"

#' Past ILINet baselines for all locations
#'
#' A data.frame containing a past ILINet baselines
#'
#' @format A data frame with 110 rows and 3 variables:
#' \describe{
#'   \item{location}{character vector of location}
#'   \item{year}{numeric vector with the start year of the flu season}
#'   \item{value}{numeric vector with the ILINet baseline value}
#' }
"past_baselines"
jarad/FluSight documentation built on Oct. 24, 2020, 9:58 p.m.