jarad / FluSight

An R package containing functions used in the CDC Flu Forecasting competition
GNU General Public License v3.0
12 stars 7 forks source link

A couple of minor bug fixes for create_truth #24

Closed elray1 closed 6 years ago

elray1 commented 6 years ago

Fix logical flow for checking user-provided weekILI, and add ILI column to data pulled from ilinet, set equal to wILI. These changes fix errors thrown if user did not provide data for ilinet challenge.

Adding the ILI column was the quickest and most minimal fix for a bigger issue, which is that a column called ILI is used in create_truth, create_onset, create_peak, and create_week to create the "truth" for ilinet challenge -- but we probably want to use wILI. I created a related issue for this, #23 -- depending on what you want to do about that issue, the change here may not be what you want.