cross_validate | R Documentation |
Predict data
cross_validate(fittedModel, allLagsT, fillzeros, allunits, nsim) predict_noYr(fittedModel, allLagsT, allLagsO, fillzeros, allunits, nsim) predict_wYr(fittedModel, allLagsT, allLagsO, fillzeros, allunits, nsim)
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 |
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
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.