get_actuals: Retrieve actual results for provided forecasts

Description Usage Arguments Value

View source: R/evaluate_predictions.R

Description

Retrieve actual results for provided forecasts

Usage

1
2
3
4
get_actuals(
  predictions_cards,
  geo_type = c("county", "hrr", "msa", "dma", "state", "hhs", "nation")
)

Arguments

predictions_cards

tibble of predictions that are all for the same prediction task, meaning they are for the same response, incidence period and geo_type. Forecasts may be for a different forecast date or forecaster. A predictions card may be created by the function get_predictions(), downloaded with get_covidhub_predictions() or possibly created manually.

geo_type

String indicating geographical type, such as "county", or "state". See the COVIDcast Geographic Coding documentation for available options.

Value

'predictions_cards' with an added column actual, which represents the observed value on the date. The quantile and value columns are dropped, as the actual value does not depend on the quantile predictions.


dshemetov/evalcast-mirror documentation built on Feb. 4, 2022, 8:52 a.m.