Description Usage Arguments Value
View source: R/forecasting_main.R
Create the appropriate predictions/forecasts.
1 2 3 4 5 6 7 8 | create_predictions(
fc_model_family,
report_settings,
regress,
epi_lag,
env_variables_used,
req_date
)
|
fc_model_family |
The |
report_settings |
This is a named list of all the report, forecasting, event detection and other settings. All of these have defaults, but they are not likely the defaults needed for your system, so each of these should be reviewed:
|
regress |
The regression object, either the user-supplied one from 'report_settings$model_cached', or the one just generated. |
epi_lag |
Epidemiological dataset with basis spline summaries of the lagged environmental data (or anomalies), with groupings as a factor. |
env_variables_used |
a list of environmental variables that will be used in the modeling (had to be listed in model variables input file and present the env_data and env_info datasets) |
req_date |
The end date of requested forecast regression. When fit_freq == "once", this is the last date of the full report, the end date of the forecast period. |
A dataset from predict() using the regression object generated in build_model or a newly created one. The dataset includes the predicted/forecast values through the end of the report requested.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.