anomalize_env: Convert environmental data into anomalies.

Description Usage Arguments Value

View source: R/forecasting_helpers.R

Description

Raw environmental values are not used in modeling, but rather their anomalies, departures for the historical "normal". We are looking at the influence of deviation from normal in the environmental factors to help explain deviations from normal in the human cases.

Usage

1
anomalize_env(env_fc, quo_groupfield, nthreads, env_variables_used)

Arguments

env_fc

Environmental data formatted for forecasting by 'env_format_fc()'.

quo_groupfield

Quosure of the user given geographic grouping field to run_epidemia().

nthreads

Extract from 'report_settings$fc_nthreads', max thread count for parallelization

env_variables_used

List of environmental variables that were used in the modeling, created by 'pull_model_envvars()', from list in 'report_settings$env_var' & found in 'env_data'

Value

Environmental dataset in same format as env_fc but with the residuals from a GAM with geographic unit and cyclical cubic regression spline on day of year per geographic group in place of the original raw values.


EcoGRAPH/epidemiar documentation built on Nov. 13, 2020, 5:31 p.m.