Man pages for reichlab/cdcfluutils
Utility functions for CDC flu forecasts for team Kernel of Truth

assemble_predictionsAssemble leave-one-season-out or test phase predictions made...
assemble_stacking_inputsAssemble a data frame of inputs to stacking
calc_median_from_binned_probsCalculation of median value from binned probability...
cdcfluutilscdcfluutils - Utility functions for CDC flu forecasts for...
compute_competition_log_scoreCalculate "log scores" for the purpose of the competition -...
create_ILI_revision_tablescreate tables of ILI trajectory revisions by epiweek
download_and_preprocess_flu_dataDownload and preprocess the latest CDC flu data, both...
download_and_preprocess_hosp_dataDownload and preprocess the latest CDC hospitalization data
download_and_preprocess_state_flu_dataDownload and preprocess the latest CDC flu data, state-level
fetch_delphi_data_multi_issueFetch and combine data from the Delphi Epidata API
first_season_week_below_baselineFind the first season week incidence goes below baseline and...
fit_kde_log_peak_week_incEstimate KDE for LOG peak week incidence
fit_kde_onset_weekEstimate KDE for onset week
fit_kde_peak_weekEstimate KDE for peak week
fit_kde_weekly_incFit a GAM for weekly incidence
fit_kernel_smoothed_stacked_model_fixed_bwEstimate weights for a linear combination of predictive...
fit_region_kdesFits and saves KDE models for all region-year combinations
fit_region_sarimaEstimate SARIMA model using data up to but not including...
fit_stacked_modelFit a stacking model that assigns weights to component models...
fit_unregularized_stacked_modelEstimate "optimal" unregularized weights for a linear...
flu_dataRegional influenza incidence in the US (1997 - 2019)
flu_onset_baselinesFlu season "onset thresholds" from the US CDC.
get_inc_binreturn the bin name for a given incidence
get_num_MMWR_weeks_in_first_season_yearreturn integer that's either 52 or 53: number of weeks in the...
get_num_MMWR_weeks_in_yearreturn integer that's either 52 or 53: number of MMWR weeks...
get_observed_seasonal_quantitiesCompute season onset, peak week, and peak incidence
get_official_observed_seasonal_quantitiesCompute season onset, peak week, and peak incidence
get_onset_baselineGet the onset baseline for a combination of region and season
get_onset_weekUtility function to compute onset week based on a trajectory...
get_partially_revised_ilinetWrapper function around epiforecast::mimicPastEpidataDF to...
get_submission_one_region_via_trajectory_simulationGet samples in for each prediction target in a predx data...
historical_vars_regionalVariances of historical revisions to ilinet data
ILI_revision_tablesA list of historical revisions to ilinet data at the national...
logspace_addCalculate log(exp(logx) + exp(logy)) in a somewhat...
logspace_subCalculate log(exp(logx) - exp(logy)) in a somewhat...
logspace_sub_matrix_rowsCalculate logspace difference of matrix rows in a somewhat...
logspace_sumCalculate log(sum(exp(logx))) in a somewhat numerically...
logspace_sum_matrix_rowsCalculate logspace summation of matrix rows in a somewhat...
make_kde_region_predictionMake a KDE prediction for one region
make_one_kde_prediction_fileWrapper for prediction of a single time-point from KDE fits
make_predictions_plotsMake plots of prediction submissions for flu contest: so far,...
merge_predx_samplesmerge predx samples by location and target
mmwr_week_to_seasonget season in which an mmwr week falls
mmwr_week_to_season_weekConvert mmwr week to season week
move_k_week_aheadUtility function to move k week ahead
my_plot_weekaheadPlots Week Ahead Forecasts
nat_reg_flu_data_with_backfillNational and Regional influenza incidence in the US (1997 -...
pick_weekFor each week specified by a vector of dates giving the week...
predict_kde_log_peak_week_incCompute predictive distribution for peak week incidence from...
predict_kde_log_weekly_incCompute predictive distribution for weekly incidence from GAM...
predict_kde_onset_weekFunctions for predicting from KDE fits
predict_kde_peak_weekCompute predictive distribution for peak week from KDE fit
predict_region_kdeWrapper for prediction and evaluation of KDE fits
predx_to_submission_dfConverts predx format forecasts into a data frame suitable...
preprocess_and_augment_trajectory_samplesGiven a set of sampled trajectories for future disease...
preprocess_reg_data_for_GPthingy_stanPreprocess state level flu data and set up a data object to...
rRevisedILIsample revised ILI trajectories
rRevisedILI_cachedsample revised ILI trajectories
rRevisedILI_fastsample revised ILI trajectories using normal approximation
sample_predictive_trajectories_arima_wrapperA wrapper around simulate.sarimaTD suitable for use as the...
season_week_to_mmwr_yearreturn mmwr year corresponding to a given season week
season_week_to_year_weekConvert season week to year week
simulate_trajectories_kcdeSimulate predictive distributions from KCDE/copulas model;...
state_flu_dataState-level influenza incidence in the US (1997 - 2018)
to_standard_location_codeConvert a location name to standardized name as given here:...
weighted_combine_predictionsCompute a weighted combination of prediction results
year_week_to_season_weekConvert year week to season week (deprecated - use...
reichlab/cdcfluutils documentation built on March 12, 2020, 2:49 p.m.