dfmip.to.cdc.challenge.format: Convert to CDC Forecast Challenge

View source: R/dfmip.R

dfmip.to.cdc.challenge.formatR Documentation

Convert to CDC Forecast Challenge

Description

Convert to CDC Forecast Challenge

Usage

dfmip.to.cdc.challenge.format(
  model.name,
  forecast.distributions,
  out.file,
  n.draws,
  bins = c(0, 1, 6, 11, 16, 21, 26, 31, 36, 41, 46, 51, 101, 151, 201, 1000)
)

Arguments

model.name

The name of the model results to subset from the forecast.distributions object

forecast.distributions

The forecast.distributions output created by dfmip for a single forecast model

out.file

The file to contain the CDC WNV forecast

n.draws

The number of forecast draws in the forecast.distributions dataframe

bins

Identify bins used. Inclusive on the lower bound. The upper bin must exceed all observations, otherwise probabilities will not sum to 1.

Value

forecast.template The forecast in the format required by the CDC (also written to file).


akeyel/dfmip documentation built on Sept. 3, 2022, 1:26 a.m.