Skip to contents

Converts EpiNow2 estimates and forecasts to hub submission format.

Usage

convert_epinow2_to_hub(
  epinow2_result,
  location = "unknown",
  target = "inc",
  extract_type = "forecasts"
)

Arguments

epinow2_result

EpiNow2 result object (output from epinow)

location

Character. Location identifier. Default is "unknown".

target

Character. Target variable name. Default is "inc".

extract_type

Character. Type of data to extract: "forecasts", "estimates", or "both". Default is "forecasts".

Value

A data frame in hub format

Examples

if (FALSE) { # \dontrun{
# Assuming you have EpiNow2 results
# hub_forecasts <- convert_epinow2_to_hub(epinow2_res, location = "US")
} # }