run_bootstrap#

pharmpy.tools.run_bootstrap(model, results=None, resamples=1, **kwargs)#

Run bootstrap tool

Parameters:
  • model (Model) – Pharmpy model

  • results (ModelfitResults) – Results for model

  • resamples (int) – Number of bootstrap resample

  • kwargs – Arguments to pass to tool

Returns:

BootstrapResults – Bootstrap tool result object

Examples

>>> from pharmpy.modeling import load_example_model
>>> from pharmpy.tools import run_bootstrap, load_example_modelfit_results
>>> model = load_example_model("pheno")
>>> results = load_example_modelfit_results("pheno")
>>> run_bootstrap(model, res, resamples=500)