Model management

new_model()

Create new model object

read_model()

Creates a model object from a YAML model file

copy_model_from()

Create new model by copying existing model

inherit_param_estimates()

Inherit parameter estimates

tweak_initial_estimates()

Tweak the initial parameter estimates

update_model_id()

Update model ID (run number) in the control stream

model_diff()

Compare model files between models

tags_diff() add_tags_diff()

Compare tags between models

check_up_to_date()

Check model and data up to date with outputs

Model submission

submit_model()

Submit a model to be run

submit_models()

Submit models to be run in batch

print_bbi_args()

Print valid .bbi_args

Model summary and outputs

model_summary()

Summarize model outputs

model_summaries()

Summarize multiple models in batch

param_estimates()

Parses parameter estimates table

param_estimates_batch()

Batch Processing of Parameter Estimates

param_estimates_compare()

Compare parameter estimates

get_omega() get_sigma() get_theta()

Return a formatted object for a given parameter

nm_file() nm_grd() nm_tab() nm_par_tab() nm_data()

Read NONMEM files

nm_join()

Return a single data frame with model output and input data

nm_tables() nm_table_files()

Read all tables and input data

cov_cor()

NONMEM Covariance and Correlation Matrices

check_cor_threshold()

Check for high correlations

as_summary_list()

Convert object to bbi_summary_list

param_labels()

Extract parameter labels for report tables, etc.

apply_indices() block()

Add parameter indices to a label tibble

Summary log tables

run_log()

Create tibble summarizing all model runs

summary_log() add_summary()

Create a tibble from model_summaries() data

config_log() add_config()

Parse bbi configs to log

Model object interactions

add_tags() replace_tag() replace_all_tags() remove_tags()

Modify tags on a model object

add_notes() replace_note() replace_all_notes() remove_notes()

Modify notes on a model object

add_based_on() replace_all_based_on() remove_based_on()

Modify based_on field in a model object

add_description() replace_description()

Modify description on a model object

add_star() remove_star()

Modify star attribute on a model object

add_bbi_args() replace_all_bbi_args()

Modify bbi_args on a model object

modify_model_field() replace_model_field()

Modify field in model object

build_path_from_model()

Build path to output file

get_based_on() get_model_ancestry()

Get based_on from bbi object

get_model_id()

Get model identifier

get_model_path() get_output_dir() get_yaml_path() get_config_path()

Get path from bbi object

get_data_path()

Get path to data file

print(<bbi_process>) print(<bbi_model>) print(<bbi_nonmem_summary>)

Print methods for bbr objects

initial_estimates()

Retrieve and format initial parameter estimates

bbi configuration

use_bbi()

Installs most current release of bbi

bbi_init()

Initialize bbi

bbi_version()

Get version of installed bbi

bbi_current_release()

Get version number of bbi current release

bbi_help()

Executes (bbi --help) and prints the output string

Assorted helpers

check_file() tail_output() tail_lst()

Check an output file

collapse_to_string()

Collapse list column to a character column

check_nonmem_table_output() check_grd() check_ext()

Check NONMEM output files

check_output_dir()

Check output directory

check_status_code()

Checks status code from processx process

format_cmd_args()

Formats command line args from a named list to a string as it would be passed on the command line

new_ext() ctl_ext() mod_ext() yaml_ext()

Change file extension

open_model_file()

Open main model definition file in text editor

plot_nonmem_table_df() plot_grd() plot_ext()

Plot NONMEM output files

reconcile_yaml() check_yaml_in_sync()

Verify YAML file integrity

suppressSpecificWarning()

Suppress a warning that matches .regexpr

test_threads()

Takes a model object and runs it with various threads values

check_run_times()

Check estimation time for models run with various threads values

delete_models()

Remove model files associated with the specified tags

check_nonmem_finished()

Checks if NONMEM run is done by looking for "Stop Time" in .lst file

wait_for_nonmem()

Wait for NONMEM models to finish