apply.uniform: Uniform Null Model

View source: R/NullModels.R

apply.uniformR Documentation

Uniform Null Model

Description

Apply a uniform distribution between 0 and the maximum number of cases observed stratified by county.

Usage

apply.uniform(train.data, target.year, n.draws, draw.vec)

Arguments

train.data

Training data to be used to generate the null predictions Must have a location field with locations, and a count field with number of cases.

target.year

The year for the prediction. Included in the output data frame to indicate the target year, but otherwise unused

n.draws

The number of probabilistic draws to include in the data matrix.

draw.vec

A vector of column names for the probabilistic draws.

Value

out.df A data frame containing the forecast for each location for the target year


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