Skip to contents

All functions

add_linear_regression_formula()
Add Linear Regression Formula (not currently used)
add_watermark()
Function to add a watermark to a ggplot
binary_cat_dist()
Function to generate a binary categorical covariate
calc_summary_stats()
Calculate summary stats with optional rounding
calc_summary_stats_as_list()
Return summary stats as a list
cdc.expand
CDC weight-for-age (https://www.cdc.gov/growthcharts/percentile_data_files.htm) Weight-for-age charts, 0 to 20 years, LMS parameters and selected smoothed weight percentiles in kilograms, by sex and age Stature-for-age charts, 0 to 20 years, LMS parameters and selected smoothed weight percentiles in cm, by sex and age Insert citation notes here in the future
check_and_combine_df()
combined 2 datasets for download
check_cov_name()
Function to return a DUMMY name if supplied string is reserved
check_cov_name_duplicate()
Function to check covariate names do not duplicate
check_matrix()
Checks for validity of matrix
code_preamble
Code editor preamble and postambles
compare_dist_histogram()
Sanity check plots comparing newly created distributions vs NONMEM dataset (or databases)
convert_to_plotly_watermark()
Converts a ggplot object to plotly object and then apply watermark, and other options
create_alert()
Function that generates a shinyalert
create_value_box()
Short-hand for creating NCA metrics valueBoxes
do_data_page_plot()
Quick Plot for Data Exploration
drawDetails(<watermark>)
Auxillary function for watermark in ggplot (S3method?)
draw_correlation_plot()
Draw a correlation plot from a NONMEM-formatted dataset
eval_parse()
Short-hand function to eval, and then parse a string
extract_matrix()
Function to output a matrix from mrgsolve model object
extract_model_params()
Function to extract params from model object
general_warning_modal()
Creates a general warning modal
generate_dosing_regimens()
Generate Dosing Regimens
generate_log_breaks()
Generating log breaks and axis labels, mainly for plotly
gm_mean()
Geometric mean
gm_mean_cv()
Geometric mean CV %
lm_eqn()
Linear regression text (for plotly)
lm_eqn_old()
Linear regression text (not used)
lowerFn()
Function to support draw_correlation_plot
ls_all()
List All Objects
model_examples_list
List of template models available for all users
model_switch_conditions()
shorthand function to switch model code based on choice of model input, and append model name
nhanes.filtered
NHANES 1999-2020 (pre-pandemic, until March 2020, pre-pandemic (https://wwwn.cdc.gov/nchs/nhanes/Default.aspx) ID, WT, SEX, AGEYR are retained by default. Insert citation notes here in the future
pct_above_y_at_x()
Function that calculates % of population > Y-value at a given X-value
pd_gompertz_effect
PD model of gemcitabine, with gompertz and effect compartment Tham LS, Holford NH, Wang L, Soo RA, Lee SC, Lee HS, et al. A pharmacodynamic model for the time course of tumor shrinkage by gemcitabine + carboplatin in non-small cell lung cancer patients. Clin Cancer Res. 2008;14(13):4213-8.
pdfNCA_wm()
Modified ncar::pdfNCA to support watermarks
pk_adaptive_dosing_int
Adaptive dosing interval example from mrgsolve v1.4.1 https://mrgsolve.org/blog/posts/2024-new-1-4-0-evtools.html#update-the-dose-regimen
pk_seq_first_order
Sequential zero and first order absorption model (by Jinju Guk)
pknca_table()
Function to calculate summary statistics from simulated output
pkpd_adaptive_dosing
Adaptive dosing regimen example from mrgsolve v1.4.1 https://mrgsolve.org/blog/posts/2024-new-1-4-0-evtools.html#update-the-dose-regimen
plot_data_with_nm()
Main plot for Simulation tab
plot_iiv_data_with_nm()
Function to plot variability data
plot_three_data_with_nm()
Main function for the plot in Parameter Sensitivity Analysis
print_cov_plot()
Prints distribution of a custom covariate
print_demog_plots()
Print demographics plots.
quantile_output()
Creates upper and lower percentiles by TIME for a given dataset
quantize()
Used for dividing bins for median line plots
reconstruct_matrices()
Converts a matrix object into a list
run_mvp()
Launch Model Visualization Platform App
run_single_sim()
Executes a mrgsim call based on user input
safely_eval()
purrr:safely wrappers for various functions
safely_parse()
purrr:safely wrappers for various functions
safely_run_single_sim()
purrr:safely wrappers for various functions
sample_age_wt()
Samples from existing databases
sanitize_numeric_input()
expects numeric as input, and cleans it
smart_x_axis()
Function to improve default x-axis breaks
split_data_frame()
Function to split dataframes into roughly equal portions to facilitate distribution to each core
today_numeric()
Get today's date as YYYYMMDD as seed input
update_model_choices()
Shorthand function to update list of models and default values by input password
update_model_object()
Function to update model object
update_resistant_popover()
Function that adds on to the an existing bsPopover such that the tooltip persists after updateSelectInput etc
update_variability()
Updates variability for a mrgmod object
useShinydashboardMVP()
Manually define useShinydashboard before it will be removed in a future release of shinyWidgets
who.expand
World Health Organization Pediatric Data