apply.ar1: Apply Autoregressive 1 model

View source: R/NullModels.R

apply.ar1R Documentation

Apply Autoregressive 1 model

Description

Apply an Autoregressive 1 model assuming a normal distribution (with negative values reclassified to be 0)

Usage

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

Arguments

train.data

Training data to be used to calculate the mean values. 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. Retained here only for consistency in formatting with the probabilistic methods.

draw.vec

A vector of column names for the probabilistic draws.

Value

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


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