Package index
-
bottom_up_aggregation()
- Bottom up aggregration of base forecasts
-
categorize_prism()
- Categorize a vector of values into PRISM activity level bins.
-
categorize_vector()
- Catgeorize entries in a numeric vector according to a list of breakpoints and labels.
-
copula2tbl()
- Convert Copula Samples to a Tibble
-
count_trajectories()
- Count the number of trajectories per location
-
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.
-
gather_hub_location_data()
- Gather location data from a forecast hub.
-
gather_hub_quantile_forecasts()
- Collect and reformat hub forecasts for scoring.
-
gather_hub_target_data()
- Gather target truth data from a forecast hub.
-
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
-
get_prism_cutpoints()
- Get PRISM activity level cutpoints for given diseases and locations
-
hub_to_scorable_quantiles()
- Create a table for scoring hub model quantile forecasts from a local copy of a hub.
-
hubverse_table_with_obs()
- Join hubverse forecasts to observed data
-
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 NHSN Hospital Respiratory Data set.
-
nullable_comparison()
- Compare two quantities
a
andb
with a givencomparison operator
, returning a singleTRUE
ifb
isNULL
.
-
pivot_hubverse_quantiles_wider()
- Pivot a hubverse quantile table wider with columns representing individual quantile levels.
-
plot_coverage_by_date()
- Plot of empirical forecast coverage by reference date.
-
plot_hubverse_file_quantiles()
- Plot hubverse formatted forecasts for all or a subset of forecasted locations.
-
plot_hubverse_loc_quant_ts()
- Plot a hubverse formatted quantile forecast timeseries for a single location.
-
plot_hubverse_pointintervals()
- Plot a table of hubverse-formatted forecasts as pointintervals
-
plot_pred_obs_by_forecast_date()
- Plot median predictions and prediction intervals against observed data by forecast date.
-
plot_quantile_timeseries()
- Plot a timeseries of quantiles.
-
plots_to_pdf()
- Save a list of ggplot plots as a PDF, with a grid of
nrow
byncol
plots per page
-
prism_thresholds
- PRISM respiratory virus activity level thresholds
-
pull_nhsn()
- Pull NHSN data from
data.cdc.gov
-
quantile_table_to_scorable()
- create a
scoringutils
-ready table.
-
rank_sampled_trajectories()
- Rank sampled trajectories
-
read_tabular_file()
- Read a tabular file to a tibble, inferring format from the file extension if it is not specified.
-
sample_aggregated_trajectories()
- Generate sample trajectories based on ranked base forecasts
-
scale_fill_prism()
scale_color_prism()
scale_colour_prism()
- Prism color scale
-
soql_nullable_is_in()
- Add an "is in" statement to a SOQL query, or return the original query if
match_values
isNULL
.
-
soql_nullable_select()
- Add a
soql::soql_select()
statement to a query to select a set of columnscolumns
, or return the original query ifcolumns
isNULL
.
-
soql_nullable_where()
- Add a
soql::soql_where()
statement to a SOQL query, or return the original query ifwhere_value
isNULL
.
-
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