Man pages for metrumresearchgroup/bbr
R package for bbi

add_log_implAdd columns to log df
add_model_statusAdd model status to a run log
add_na_filterAdjust filters to retain NA values for relevant columns
add_param_shrinkageAdd shrinkage details to param table
add_run_id_coladd run col to bbi_log_df
add_to_path_messageHelper to message user about adding the bbi directory to...
adjust_estimation_optionsParse model files and overwrite estimation iterations
apply_indicesAdd parameter indices to a label tibble
assert_bbi_versionCheck that bbi satisfies a version constraint
assert_nm_table_formatCheck if a 'NONMEM' table file contains one or more tables in...
assert_record_typeHelper for checking if a specified record type is valid.
as_summary_listConvert object to 'bbi_summary_list'
BBI_ARGSList of valid arguments bbi arguments
bbi_current_releaseGet version number of bbi current release
bbi_dry_runCreates a 'bbi_process' object with all the required keys,...
bbi_execExecute call to bbi
bbi_helpExecutes ('bbi –help') and prints the output string
bbi_initInitialize bbi
bbi_nonmem_model_statusReturn status of a model
bbi_versionGet version of installed bbi
bbrbbr
build_bbi_install_pathBuild default path to install bbi to
build_bbi_param_listGroup models for bbi submission
build_matrix_indicesBuilds matrix indices labels
build_new_model_pathPrivate helper to build absolute path for...
build_path_from_modelBuild path to output file
check_bbi_argsChecks that all passed NONMEM command line args are valid and...
check_bbi_exeCheck that bbi is installed
check_bbi_run_log_df_objectPrivate helper to check if an object inherits a run log class...
check_cor_thresholdCheck for high correlations
check_fileCheck an output file
check_for_existing_modelPrivate helper to look for existing model and overwrite if...
check_lst_filePrivate helper function to look for .lst function in a...
check_mode_argumentPrivate helper to check if '.mode' arg to 'submit_model()' is...
check_model_for_simCheck that a 'bbr' model can be used for simulation
check_model_objectPrivate helper to check if an object inherits a model class...
check_model_object_listPrivate helper to check if a list of objects all inherit a...
check_nonmem_table_bbiPrivate helper to pull a NONMEM table from a model
check_nonmem_table_outputCheck NONMEM output files
check_osCheck what operating system R is running on
check_output_dirCheck output directory
check_record_valCheck if a record option matches a specific value
check_run_timesCheck estimation time for models run with various threads...
check_status_codeChecks status code from processx process
check_up_to_dateCheck model and data up to date with outputs
check_up_to_date_nonmemPrivate implementation to check that NONMEM model is...
clean_ctlParse control stream to a named list of the blocks
cleanup_bootstrap_runCleanup bootstrap run directory
collapse_to_stringCollapse list column to a character column
color_model_typeFormat and color the model type of a model
color_statusFunction to color the status. Green for finished; red...
combine_list_objectsCombines two named lists. By default, shared keys are...
config_logParse bbi configs to log
config_log_entryParse a bbi config file
config_log_implBuild config log
config_log_make_entryPrepare a model-specific config log entry
copy_control_streamCopy a NONMEM control stream file
copy_model_fromCreate new model by copying existing model
copy_model_from_implCopy model from an existing model
cov_corNONMEM Covariance and Correlation Matrices
create_bbi_objectCreate bbi object
create_model_hookPerform model-type specific setup
current_release_urlPrivate helper function to most recent release version from...
delete_modelsRemove model files associated with the specified tags
dev_errorConstruct error message that users shouldn't see
download_bbiDownload bbi executable to the specified path.
download_with_retryCall 'utils::download.file()', retrying once on failure.
drop_dupsDrop duplicate columns to prepare for join
execute_nmtranExecute 'NM-TRAN' in a given directory
extract_from_summaryExtract from summary object
file_matchesCompare a file to an MD5 sum
file_matches_stringCompare a file to a string
filter_nm_dataFilter 'NONMEM' input data based on 'IGNORE' and 'ACCEPT'...
find_modelsSearch for model YAML files and read them
find_nonmem_model_file_pathFind the path to a NONMEM model file
fmt_record_numGet record number of initial estimates
format_cmd_argsFormats command line args from a named list to a string as it...
format_matrixFormat vector into matrix using positional vector
format_model_typeFormat the model type for use in 'model_tree()'
get_based_onGet based_on from bbi object
get_boot_specRead in and format the bootstrap specification file.
get_data_pathGet path to data file
get_model_idGet model identifier
get_model_working_directoryGet the working directory of a model object
get_msf_pathGet path to 'MSF' file path
get_next_integerCheck directory for model files with integer names and return...
get_omegaReturn a formatted object for a given parameter
get_paramReturn a formatted object for a given parameter
get_path_from_log_dfPrivate helper function to extract paths from bbi_log_df
get_path_from_objectGet path from bbi object
get_sim_replicate_recordDetermine whether 'NONMEM' control stream is using a $PRED or...
get_sim_specRead in and format the simulation specification file.
get_spec_pathGet the relevant specification file path
get_theta_initsHelper function for getting the initial theta values,...
highlight_cellHighlight cell in kable table
inherit_param_estimatesInherit parameter estimates
initial_estimatesRetrieve and format initial parameter estimates
install_menuPrivate implementation function for installing bbi with...
invert_operatorFunction to invert 'R' operators in filter expressions
is_diagCheck if diagonal index or not
is_valid_nonmem_extensionPrivate helper to check if file has a valid NONMEM control...
is_valid_yaml_extensionPrivate helper to check if file has a valid YAML extension
make_boot_runSet up a single bootstrap model run
make_boot_specStore bootstrap run details before submission
make_tree_dataConstruct dataset for use in 'model_tree'
map_list_recursiveRecursively apply a function to each list element
model_diffCompare model files between models
model_diff_get_compPrivate helper to get a valid comparison model
model_diff_implPrivate helper to diff two model files
model_statusCheck the status of 'NONMEM' run(s)
model_summariesSummarize multiple models in batch
model_summarySummarize model outputs
model_treeCreate a tree diagram of a modeling directory
model_tree_pngSave an interactive 'model_tree()' as a PNG and load in...
modify_based_onModify based_on field in a model object
modify_bbi_argsModify bbi_args on a model object
modify_descriptionModify description on a model object
modify_model_fieldModify field in model object
modify_model_field_lglAdds or removes boolean attribute from model object and YAML
modify_notesModify notes on a model object
modify_recordsModify or retrieve options and records from a 'NONMEM'...
modify_starModify star attribute on a model object
modify_tagsModify tags on a model object
mod_list_setupCoerce model object to a list of models for use in...
na_to_nullConvert an object containing entirely NA's to NULL
new_bootstrap_runCreate a bootstrap run from an existing model
new_extChange file extension
new_modelCreate new model object
new_sim_modelCreate a simulation model object from an existing model
nm_fileRead NONMEM files
nm_file_implImplementation function for reading NONMEM files
nm_file_multi_tabRead in table file with multiple 'NONMEM' tables.
nm_joinReturn a single data frame with model output and input data
nm_join_implImplementation function for 'nm_join()'
nm_join_simJoin simulation and input data
nm_tablesRead all tables and input data
nmtran_setupSets up 'NM-TRAN' to run by identifying an 'NM-TRAN'...
nonmem_summaryRun bbi nonmem summary and parse the output to a list
open_model_fileOpen main model definition file in text editor
param_estimatesParses parameter estimates table
param_estimates_batchBatch Processing of Parameter Estimates
param_estimates_compareCompare parameter estimates
param_labelsExtract parameter labels for report tables, etc.
parse_args_listCombines NONMEM args that were passed into the function call...
parse_cov_cor_full_fileHelper to pull full matrix from final estimation method from...
parse_ctl_to_listParses NONMEM control stream to a list of $ blocks. Adapted...
parse_nmtran_argsParse '.bbi_args' and return the three expected...
parse_param_commentParse parameter labels
pipePipe operator
plot_nonmem_table_dfPlot NONMEM output files
print_bbiPrint methods for bbr objects
print_bbi_argsPrint valid .bbi_args
print_model_filesPrint a list of files.
read_bbi_pathSet the path to the bbi executable
read_modelCreates a model object from a YAML model file
register_model_typeRegister a model type to class mapping
remove_dup_colsRemoves duplicate col names
req_tree_pkgsRequired packages for running 'model_tree()'
resolve_nonmem_versionDetermine the NONMEM version used
run_logCreate tibble summarizing all model runs
run_log_entryCreate a run log row from a bbi_{.model_type}_model object
run_nmtranInterface for running 'NM-TRAN' on model objects
safe_based_onChecks for yaml files relative to a starting location
safe_read_modelRead in model with error handling
sanitize_file_extensionPrivate helper to remove file extensions to match expected...
save_model_yamlSaves a model object to a yaml file
set_bbi_nullReplace BBI_NULL_NUM and BBI_NULL_STR with NA_real_
setup_bootstrap_runSet up a bootstrap model run
setup_sim_runSet up 'NONMEM' simulation
sigFormat digits
simulateSimulate a 'bbi_nonmem_model' object
skip_if_not_ci_or_metworxSkip test if not on Metworx or in CI
skip_if_old_bbiSkip test if current bbi version is below specified one.
skip_if_old_nmrecSkip test if current nmrec version is below specified one.
skip_if_over_rate_limitSkip test if over Github API rate limit
skip_long_testsSkip long-running tests
stop_get_fail_msgBuild error message and throw error for generic failure fo...
stop_get_scalar_msgBuild error message and throw error for passing character...
strict_mode_errorRaise error in strict mode
style_htmlHelper for coloring text and applying other styles
submit_modelSubmit a model to be run
submit_modelsSubmit models to be run in batch
submit_nonmem_modelSubmit a NONMEM model via bbi
summarize_bootstrapSummarize a bootstrap run
summary_logCreate a tibble from 'model_summaries()' data
summary_log_implBuild summary log
suppressSpecificWarningSuppress a warning that matches '.regexpr'
tags_diffCompare tags between models
test_nmrec_versionCheck that nmrec satisfies a version constraint
test_threadsTakes a model object and runs it with various threads values
translate_nm_exprTranslate 'NONMEM' 'IGNORE' and 'ACCEPT' expressions into...
translate_nm_operatorFunction to translate 'NONMEM' operators to 'R' operators
tweak_initial_estimatesTweak the initial parameter estimates
tweak_thetasTweak theta estimates while respecting bounds
unquote_filenameUnquote file paths for inclusion within a NONMEM control file
update_model_idUpdate model ID (run number) in the control stream
use_bbiInstalls most current release of bbi
using_old_priorsCheck if _non-specific_ priors are being used.
validate_parent_modConfirm parent model path is valid, and error informatively...
verbose_msgPrints message(s) if 'isTRUE(getOption("bbr.verbose"))'
verify_model_yaml_integrityVerify YAML file integrity
version_messagePrivate helper to construct version comparison message
metrumresearchgroup/bbr documentation built on March 29, 2025, 1:08 p.m.