Histogram functionality now documented and exported: The package has long included functions for analysing aggregated/binned waiting list data (histogram format), but these were previously internal-only. These functions are now fully documented and exported:
wl_stats_hist() - Comprehensive waiting list statistics from histogram datawl_referral_stats_hist() - Demand/referral statisticswl_removal_stats_hist() - Capacity/removal statisticswl_queue_size_hist() - Queue size calculationwl_mean_wait_age_hist() - Mean waiting timewl_percentile_hist() - Percentile calculationswl_join_hist() and wl_insert_hist() - Histogram manipulationformat_histogram() and aggregate_histogram() - Data preparation utilitiesImproved histogram API: wl_stats_hist() and wl_removal_stats_hist() now accept a single histogram dataframe with multiple report_date values, rather than requiring two separate histogram parameters. This significantly improves usability and allows analysis across multiple time points.
New vignette: Added comprehensive histogram analysis vignette demonstrating:
Added a plotting function plot_rtt_journey() and quarto report generating
function rep_rtt_improvement() to conveniently generate plots to help tell
RTT improvement stories within acute trusts.
target_wait value in wl_stats_hist() (was always 18, now uses function parameter)wl_referral_stats_hist-E-LOSX4GYQ6L4.R