View source: R/WNV_models_lags.r
predict_switch | R Documentation |
Parse the model formula and call the appropriate predict function
predict_switch(fittedmodel, allLagsT, allLagsO, fillzeros, allunits, nsim)
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 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.