predict_switch: Parse the model formula and call the appropriate predict...

View source: R/WNV_models_lags.r

predict_switchR Documentation

Parse the model formula and call the appropriate predict function

Description

Parse the model formula and call the appropriate predict function

Usage

predict_switch(fittedmodel, allLagsT, allLagsO, fillzeros, allunits, nsim)

Arguments

allLagsT

The assembled data set to use for training

allLagsO

The assembled data set to use for out-of-sample prediction

fillzeros

Logical. If TRUE fill in with zeros counties that have no cases ever.

allunits

Character. Vector of county names in complete data set. Used when fillzeros == TRUE

nsim

Integer. Number of samples to draw from posterior distribution. Defaults to zero, which has the expected value of cases in predcases.

fittedModel

Model to predict from


khelmsmith/flm_NE_WNV documentation built on June 24, 2022, 11:13 p.m.