Validate the numerical simulation properties of a Stan model vs the model written in PKPDsim.
validate_stan_model.Rd
Validate the numerical simulation properties of a Stan model vs the model written in PKPDsim.
Usage
validate_stan_model(
stan_model,
pkpdsim_model,
data,
mapping = NULL,
n = 50,
max_abs_delta = 0.001,
max_rel_delta = 1e-05,
verbose = FALSE
)
Arguments
- stan_model
Stan/Torsten model
- pkpdsim_model
PKPDsim implementation
- data
dataset (see
new_stan_data()
)- mapping
remap model parameters from Stan to PKPDsim syntax, specified as a list. E.g.
map = list(V1 = V)
.- n
number of patient datasets to use in validation. Default is 50.
- max_abs_delta
maximum allowed absolute delta between Stan and PKPDsim
- max_rel_delta
maximum allowed relative delta between Stan and PKPDsim, in which PKPDsim is treated as reference.
- verbose
verbose output?