- Update
load_forecasts_repo()
andload_latest_forecasts_repo()
to use local data objects to validatetargets
parameter. - Update
score_forecasts()
to return thetrue_value
in function output - Add
hub
parameter inplot_forecasts()
andget_plot_forecast_data()
. - Update validation for
locations
,truth_source
andtarget_variable
inplot_forecasts()
andget_plot_forecast_data()
. - Add a column that appends state abbreviation to county names in US hub locations data object.
load_truth()
now supports multiple target variables and has a new set of default values fortarget_variable
andtruth_source
based onhub
parameter.load_forecasts_repo()
,load_latest_forecasts_repo()
andload_forecast_files_repo()
drop rows with NULLs invalue
column in forecast files.- Add
date_to_datetime()
that converts a date to a date time in the corresponding timezone based onhub
and returns that date time in UTC timezone. This function is used when the user is usingas_of
parameter to load forecasts from zoltar only. - Add
preprocess_visualization_truth()
to generate JSON truth file for covid19 hub visualization, and its corresponding unit tests - Add
calc_cramers_dist_equal_space()
,calc_cramers_dist_equal_space()
, andcalc_cramers_dist_one_model_pair()
to calculate forecast similarities based on the approximation of Cramer's distance. - In
score_forecasts()
calculate one-sided quantile coverage denoted quantile_coverage0.xx.
This is a release for renaming plot_forecast()
to plot_forecasts()
. plot_forecast()
is still available to use but will return deprecation warnings to the user.
- There is backwards compatibility.
This is a release focusing on updates that provide better interface with Zoltar and European COVID-19 Forecast Hub. The release also contains new feature updates and bug fixes in other util functions.
-
Update
load_forecasts()
andload_latest_forecasts()
-
Add
hub
parameter to specify the forecast hub for which data should be loaded. -
Add
as_of
parameter to improve interface with the Zoltar query. -
Add
verbose
parameter to specify whether to print out diagnostic messages. -
Support
source = local_hub_repo
inload_forecasts()
. However, loading versioned forecast files is only available through zoltar. -
All models inputed into
load_latest_forecasts()
must be available in the selectedsource
. -
Refactor to improve efficiency.
-
-
Update
plot_forecast()
-
Load
"inc hosp"
truth data from remote hub repository. The user does not need to providetruth_data
parameter to plot daily incident hospitalization forecasts. -
target_variable
is now optional whenforecast_data
only has one target variable. -
Add a new parameter
use_median_as_point
that defaults to FALSE. "TRUE" uses the median quantile and "FALSE" uses the point forecasts. -
The function now errors when trying to plot multiple locations without a facet formula.
-
Fix bug that model legend is missing when the user is only plotting quantile forecasts.
-
Update quantile forecast color so that color transparency will not be overwritten by
fill_transparency
when plotting more than five models.
-
-
Update
load_truth()
-
Add
hub
parameter to specify the forecast hub for which data should be loaded. -
Add
"inc hosp"
target variable and"HealthData"
source.
-
-
score_forecasts()
has new parameteruse_median_as_point
that defaults to FALSE. "TRUE" uses the median quantile when calculating absolute error and "FALSE" uses the point forecasts for absolute error. -
Add optional
as_of
parameter inget_model_designations()
. Currently only support versioned model designation in local hub repo.
- There is no backwards compatibility.
- Add Nikos I. Bosse and Ariane Stark to author/contributor list
- Add hub_locations_ecde.rda to data folder
This is a release focusing on new scoring function and truth-processing functions. The release also contains new feature updates and bug fixes in other util functions.
covidHubUtils now requires the scoringutils
package version to be at least 0.1.5.
-
score_forecasts()
is now implemented for quantile-format forecasts to compute absolute error, weighted interval score, sharpness, overprediction, underprediction, and prediction interval coverage at any specified quantile. Minimally one should have theforecasts
dataframe produced byload_forecasts()
and the truth dataframe produced byload_truth()
to calculate scores. If one desires to specify a subset of all available scores, one should consult this reference for valid scores in thedesired_score_types
vector.- wis calculation changed to reflect preferred weighting scheme for interval scores.
-
preprocess_truth_for_zoltar()
andsave_truth_for_zoltar()
are now implemented to create standard cumulative and incident death truth csv files for Zoltar. -
preprocess_hospitalization()
is now implemented to create standard cumulative and incident hospitalization truth csv files.
-
Update
load_forecasts()
andload_latest_forecasts()
-
Update default value of
forecast_date_window_size
to 0 inload_latest_forecasts()
so that it looks for forecasts on thelatest_forecast_date
only. -
Refactor
load_latest_forecasts_repo()
, splitting out functionality for reading in forecasts into a new exported functionload_forecast_files_repo()
that loads specific forecast files. -
Standardize data format and columns types of the output.
-
Fix validation bug for
forecast_dates
when loading forecasts from zoltar. Loading functions will throw an error if all dates inforecast_dates
are invalid forecast dates in Zoltar.
-
-
Update
plot_forecast()
to use more user-friendly color palettes when plotting a small number of intervals. -
Update
get_model_designations()
to returnNA
when model designations for outdated models are not available on Zoltar.
- There is no backwards compatibility.
- Minor updates to overview vignette.
This is a release focusing on new features in scoring functions and plotting functions.
-
Update
plot_forecast()
-
Set
truth_source
to be optional when the user providestruth_data
. However, it is still needed whenshow_caption = TRUE
. -
Remove format validation for
model
column in user-providedtruth_data
. -
Support daily hospitalization plot. When
target_variable = "inc hosp"
, the user needs to providedtruth_data
. Otherwise, an error will be thrown. -
Add
facet_nrow
,facet_ncol
,fill_transparency
,title
andsubtitle
.
-
-
Update
get_plot_forecast_data()
-
Remove format validation for
model
column in user-providedtruth_data
. -
When
target_variable = "inc hosp"
, the user needs to providedtruth_data
. Otherwise, an error will be thrown.
-
- There is no backwards compatibility.
- Add Khoa Le and Yuxin David Huang to author/contributor list
- Create covidHubUtils-overview vignette
This is a release focusing on new features in plotting functions.
-
plot_forecast()
now supports faceted plots of multiple models, locations and forecast dates for one target variable.-
In
plot_forecast()
,facet
andfacet_scales
are equivalent tofacets
andscales
inggplot2::facet_wrap()
.facet
takes facet formula, for examplefacet = ~ model
.facet_scales
are expecting the same values forscales
inggplot2::facet_wrap()
, such as"fixed"
,"free_y"
,"free_x"
or"free"
. -
If
fill_by_model = TRUE
, each model will be represented by a unique color. Iffill_by model = FALSE
, all models and selected prediction intervals will be represented by blue colors. -
For simplicity, prediction interval legends will be grey in faceted plots. Morever, when the user selects more than 5 models, only 95% predicition interval is included. Otherwise, all selected prediction intervals will be plotted.
-
- There is no backwards compatibility due to argument changes in
plot_forecast()
.
This is the first version of the package with a 0.x release.
- details on new features will be listed here for future updates
- current key features include loading and plotting forecast and truth data
- details on other changes will be listed here for future updates
- added initial author/contributor list