Description Usage Arguments Value
Function does basic existance checks and variety of logic checks on input data to run_epidemia(), and sets defaults to report_settings parameters.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | input_check(
epi_data,
env_data,
env_ref_data,
env_info,
quo_casefield,
quo_popfield,
quo_groupfield,
quo_obsfield,
quo_valuefield,
fc_model_family,
raw_settings,
groupings,
env_variables
)
|
epi_data |
Epidemiological data with case numbers per week, with date field "obs_date". |
env_data |
Daily environmental data for the same groupfields and date
range as the epidemiological data. It may contain extra data (other
districts or date ranges). The data must be in long format (one row for each
date and environmental variable combination), and must start at absolutel
minimum |
env_ref_data |
Historical averages by week of year for environmental variables. Used in extended environmental data into the future for long forecast time, to calculate anomalies in early detection period, and to display on timeseries in reports. |
env_info |
Lookup table for environmental data - reference creation method (e.g. sum or mean), report labels, etc. |
quo_casefield |
Quosure of user given field containing the disease case counts. |
quo_popfield |
Quosure of user-given field containing population values. |
quo_groupfield |
Quosure of the user given geographic grouping field to run_epidemia(). |
quo_obsfield |
Quosure of user given field name of the environmental data variables |
quo_valuefield |
Quosure of user given field name of the value of the environmental data variable observations. |
fc_model_family |
The |
raw_settings |
The report_settings object as given by the user. |
groupings |
List of all unique geographical groupings in epi_data. |
env_variables |
List of all unique environmental variables in env_data. |
Returns a list of items: a flag if there were any errors, plus accompanying error messages; a flag and messages for warnings; updated report_settings
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.