fit_region_kdes: Fits and saves KDE models for all region-year combinations

Description Usage Arguments Details Value

View source: R/kde-utils.R

Description

Fits and saves KDE models for all region-year combinations

Usage

1
2
fit_region_kdes(data, region, first_fit_year, last_fit_year, first_fit_week,
  path)

Arguments

data

cleaned usflu dataset

region

character string identifying a region

first_fit_year

along with first_fit_week, defines the first time for which a fit is made

last_fit_year

last year in which a fitted season begins

first_fit_week

see first_fit_week, week defined on calendar scale

path

filepath for saving

Details

This function call assumes that the data object contains no data from the testing phase. Starting with first_fit_year/first_fit_week, a prospective fit will be made for each season until the end of the dataset.

Value

nothing, just saving files


reichlab/2017-2018-cdc-flu-contest documentation built on May 24, 2019, 6:17 a.m.