app files

Functions for the main shiny UI and Server

app_ui()

The application User-Interface

app_server()

The application server-side

run_app()

Run the Shiny Application

modules

Each page of the application has it’s own module

app_ui()

The application User-Interface

c2t_ui() c2t_server()

Conditions to Treatments Module

demand_ui() demand_server()

Demand Module

g2c_ui() g2c_server()

Group to Conditions Module

home_ui() home_server()

Home Module

params_ui() params_server()

Params Module

results_ui() results_server()

Results Module

surgetab_ui() surgetab_server()

Surge Tab Module

app_server()

The application server-side

plot functions

Functions for producing the data for plots and the plots for the application front end

combined_plot() combined_plot_data()

Combined Plot

demand_plot() demand_plot_data()

Demand Plot

popgroups_plot() popgroups_plot_data()

Population Groups Plot

referrals_plot() referrals_plot_data()

Referrals Plot

subpopulation_curve_plot()

Subpopulation curve plot

surge_plot() surge_plot_data()

Surge Plot

treatment_split_plot()

Treatment split plot

create_graph()

Create Graph

model functions

Functions for running the Systems Dynamics model

run_model()

Run Model

get_model_params()

Get Model Params

get_model_potential_functions()

Get Model Potential Functions

parameter processing

Functions for processing and creating parameter excel files

extract_params_from_excel()

Extract Params From Excel File

params_to_xlsx()

Params To xlsx

ui helpers

Functions for helping to display outputs in the UI

download_output()

Download Model Output

get_all_conditions()

Get All Conditions

get_appointments()

Get Appointments

get_model_output()

Get model output

model_totals()

Model Totals

summarise_model_output()

Summarise model output

surge_summary()

Surge Summary

surge_table()

Surge Table

other utilities

Other functions and utilities required by the application

comma()

Comma Format

Counter-class

Counter Class

fct_reorder()

Reorder factor levels by sorting along another variable

half_life_factor()

Half Life Factor

primary_box()

Primary Box

reactive_changes()

Reactive Changes

where()

Where predicate

help_popups()

Help Popups

reduce_condition_pcnts()

Reduce Condition Percents

replace_bootstrap_cols()

Replace bootstrap grid columns