predict: Predict data

cross_validateR Documentation

Predict data

Description

Predict data

Usage

cross_validate(fittedModel, allLagsT, fillzeros, allunits, nsim)

predict_noYr(fittedModel, allLagsT, allLagsO, fillzeros, allunits, nsim)

predict_wYr(fittedModel, allLagsT, allLagsO, fillzeros, allunits, nsim)

Arguments

fittedModel

Model to predict from

allLagsT

The assembled data set to use for training

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.

allLagsO

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

Functions

  • cross_validate: Generate leave-one-year-out cross-validated predictions from in-sample data

  • predict_noYr: Predict without year in model

  • predict_wYr: Predict from models including year


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