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
Each page of the application has it’s own module
c2t_ui() c2t_server()
c2t_ui()
c2t_server()
Conditions to Treatments Module
demand_ui() demand_server()
demand_ui()
demand_server()
Demand Module
g2c_ui() g2c_server()
g2c_ui()
g2c_server()
Group to Conditions Module
home_ui() home_server()
home_ui()
home_server()
Home Module
params_ui() params_server()
params_ui()
params_server()
Params Module
results_ui() results_server()
results_ui()
results_server()
Results Module
surgetab_ui() surgetab_server()
surgetab_ui()
surgetab_server()
Surge Tab Module
Functions for producing the data for plots and the plots for the application front end
combined_plot() combined_plot_data()
combined_plot()
combined_plot_data()
Combined Plot
demand_plot() demand_plot_data()
demand_plot()
demand_plot_data()
Demand Plot
popgroups_plot() popgroups_plot_data()
popgroups_plot()
popgroups_plot_data()
Population Groups Plot
referrals_plot() referrals_plot_data()
referrals_plot()
referrals_plot_data()
Referrals Plot
subpopulation_curve_plot()
Subpopulation curve plot
surge_plot() surge_plot_data()
surge_plot()
surge_plot_data()
Surge Plot
treatment_split_plot()
Treatment split plot
create_graph()
Create Graph
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
Functions for processing and creating parameter excel files
extract_params_from_excel()
Extract Params From Excel File
params_to_xlsx()
Params To xlsx
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 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