Package index
-
bottom_up_aggregation()
- Bottom up aggregration of base forecasts
-
copula2tbl()
- Convert Copula Samples to a Tibble
-
count_trajectories()
- Count the number of trajectories per location
-
create_table_for_scoring()
- Create a table for scoring hub models with
scoringutils
-
daily_to_epiweekly()
- Aggregate a daily timeseries to epiweekly
-
download_hub()
- Download a forecast hub from
hub_url
to directoryhub_path
.
-
epiweek_to_date()
- Get a date from an epiweek and epiyear
-
epiyear_first_date()
- Get the first date of an epidemiological year ("epiyear")
-
ex_inferencedata_dataframe
- Example InferenceData DataFrame
-
example_daily_forecast_flu
- An example daily-resolution set of forecast trajectories for influenza.
-
filter_for_scoring()
- Filter a table of forecast and target data intended for scoring.
-
gather_hub_forecast_data()
- Collect and reformat hub forecasts for scoring.
-
gather_location_data()
- Gather location data from the forecast hub.
-
gather_target_data()
- Gather target truth data from the forecast hub and prepare it for use with
scoringutils
.
-
get_epiweek_start()
- Get the start day of an epiweek.
-
get_hubverse_table()
- Given a set of epiweekly quantile forecasts, format them for a hubverse submission
-
idata_names_to_tidy_names()
- Convert InferenceData column names to tidy column names
-
inferencedata_to_tidy_draws()
- Convert InferenceData DataFrame to nested tibble of tidy_draws
-
location_lookup()
- Look up rows of the USA location table corresponding to the entries of a given vector.
-
nhsn_soda_query()
- Construct a Socrata open data API (SODA) query for the NSHN dataset
-
pivot_hubverse_quantiles_wider()
- Pivot a hubverse quantile table wider with columns representing individual quantile levels.
-
plot_forecast_quantiles()
- Plot a timeseries of quantiles
-
plot_hubverse_pointintervals()
- Plot a table of hubverse-formatted forecasts as pointintervals
-
plot_hubverse_quantiles()
- Plot hubverse formatted forecasts for all or a subset of forecasted locations.
-
plot_hubverse_quantiles_loc()
- Plot hubverse formatted quantile forecasts for a given location.
-
plots_to_pdf()
- Save a list of plots as a PDF, with a grid of
nrow
byncol
plots per page
-
pull_nhsn()
- Pull NHSN data from
data.cdc.gov
-
rank_sampled_trajectories()
- Rank sampled trajectories
-
sample_aggregated_trajectories()
- Generate sample trajectories based on ranked base forecasts
-
soql_is_in()
- Return a
soql::soql_where()
construct for a given column being in a list of values
-
target_end_dates_from_horizons()
- Get a correctly-formatted set of hubverse
target_end_date
values for the given reference date and set of horizons.
-
theme_forecasttools()
- forecasttools ggplot2 theme.
-
to_location_table_column()
- Map location format strings to corresponding location lookup table column names.
-
trajectories_to_quantiles()
- Aggregate individual trajectory timeseries or forecasts to quantile timeseries or forecasts
-
update_hub()
- Update the forecast hub located at the path
hub_path
.
-
us_loc_abbr_to_code()
- Convert a two-letter USA location abbreviation to a two-character USA location code
-
us_loc_code_to_abbr()
- Convert a 2-character USA location code to a 2-letter USA location abbreviation.
-
us_location_table
- Table of US location names and codes
-
validate_base_forecasts()
- Validate the base forecasts