Stan

bbr_stan bbi_stan_model bbi_stan_gq_model

Stan models in bbr

Preparing and submitting models

add_stanmod_file() add_standata_file() add_staninit_file() add_stan_fitted_params_file()

Attaches a file to a model

build_data()

Build model input data

check_stan_model()

Check Stan model for required files and syntax errors

open_stanmod_file() open_standata_file() open_staninit_file() open_stan_fitted_params_file()

Open Stan model file in a text editor

submit_model(<bbi_stan_model>) submit_model(<bbi_stan_gq_model>)

Submit model based on a bbi_stan_model object

set_stanargs() get_stanargs()

Set or get arguments to pass when submitting Stan model

Model inspection and comparison

check_up_to_date(<bbi_stan_model>) check_up_to_date(<bbi_stan_gq_model>) check_up_to_date(<bbi_stan_summary>) check_up_to_date(<bbi_stan_gq_summary>)

Check that Stan model is up to date

model_diff(<bbi_stan_model>)

Compare Stan models

model_summary(<bbi_stan_model>)

Summarize a bbi_stan_model

stan_summary_log() stan_add_summary()

Create a tibble summarizing results for a set of Stan models

Generated quantities

copy_model_as_stan_gq()

Copy a "regular" Stan model to a generated quantities model

find_stan_gq_children()

Search for models that have a given model as the gq_parent

get_stan_gq_parent()

Get gq_parent of a standalone generated quantities model

add_stan_gq_parent() replace_all_stan_gq_parent() remove_stan_gq_parent()

Modify gq_parent of a standalone generated quantities model

Miscellaneous

install_torsten()

Install Torsten

NONMEM Bayes

bbr_nmbayes bbi_nmbayes_model

NONMEM Bayes models in bbr

Preparing and submitting models

copy_model_as_nmbayes()

Copy a "regular" NONMEM model to NONMEM Bayes model

submit_model(<bbi_nmbayes_model>)

Submit model based on a bbi_nmbayes_model object

Model inspection

chain_paths()

Return output file from each chain subdirectory

model_summary(<bbi_nmbayes_model>)

Summarize a bbi_nmbayes_model object

nm_join_bayes() nm_join_bayes_quick()

Join Bayesian model output summaries to input data

tail_lst(<bbi_nmbayes_model>) tail_output(<bbi_nmbayes_model>)

Inspect first and last lines of select files from a NONMEM Bayes model

Miscellaneous

check_nonmem_finished(<bbi_nmbayes_model>)

Check if a NONMEM Bayes model has finished running

Shared utilities

as_draws(<bbi_nmbayes_model>) as_draws(<bbi_stan_model>)

Extract posterior draws from a bbr.bayes model

read_fit_model()

Reads a fitted model object from disk

shrinkage()

Calculate shrinkage in variance of errors