Skip to contents

All functions

get_mcmc_posterior()
Draw samples from the posterior given a Stan/Torsten model and patient data
get_parameter_tables()
Get parameter tables from posterior and prior
load_model()
Initialize a model If model is not compiled yet, then compile it. Otherwise, use the binary.
new_ode_function()
Generates the ODE function that is used in a Stan/Torsten model
new_stan_data()
Create a data object for use in get_mcmc_posterior()
new_stan_model()
Create a new stan model using a template
nonmem_to_stan_data()
Reshape NONMEM data into PKPDposterior-ready or Stan-ready data
plot_params()
Plot posterior distributions of model parameters If the model also supplies prior parameters, specified e.g. as prior_CL for the CL parameter, it will plot them as well.
plot_predictions()
Plot predictions from posterior (or prior) simulations Requires as input a summarized simulation data.frame, e.g. obtained using sim_from_draws(post, summarize=TRUE)
prior_from_PKPDsim_model()
Get prior for Torsten from a PKPDsim model package
remap()
Remap named list or data.frame using a translation map
sim_from_draws()
Simulate from posterior or prior draws using PKPDsim::sim()
validate_stan_model()
Validate the numerical simulation properties of a Stan model vs the model written in PKPDsim.
write_stan_model()
Write a Stan model code to file