Skip to contents

All functions

RTTshiny
NHSRtt: A golem shiny app for modelling waiting times using a stock and flow method
calc_percentile_at_week()
Calculate the percentile waiting at a given week
calc_performance()
Calculates performance by period from a given data set and target stock
calc_shortfall()
Calculates performance by period from a given data set and target stock
check_imported_data()
check the data imported into the app
clean_raw_data()
Raw data often only contains values where they exist. This function expands the raw data so there are 0 values for periods that no counts existed. It also makes sure period and period_id are consistent between each specialty/trust combination
click_info()
function to return the data behind where the user has clicked
create_modelling_data()
Create the calibration dataset from the main data table
extend_period_type_data()
geom_step in the charts do not display the final observed or projected months well because the stepped line terminates at the start of the month. This function adds an artificial month onto the observed and projected period_types so they are displayed better on the visualisations
plot_output()
Visualisation functions for module 3
plot_waiting_lists_chart()
Plot Waiting List Distributions with Target Indicators
run_app()
Run the Shiny Application