check_parameters_near_bounds#

pharmpy.modeling.check_parameters_near_bounds(model, values, zero_limit=0.001, significant_digits=2)[source]#

Check if any estimated parameter value is close to its bounds

Parameters:
  • model (Model) – Pharmpy model object

  • values (pd.Series) – Series of values with index a subset of parameter names.

  • zero_limit (float) – maximum distance to 0 bounds

  • significant_digits (int) – maximum distance to non-zero bounds in number of significant digits

Returns:

pd.Series – Logical Series with same index as values

Example

>>> from pharmpy.modeling import *
>>> from pharmpy.tools import load_example_modelfit_results
>>> model = load_example_model("pheno")
>>> results = load_example_modelfit_results("pheno")
>>> check_parameters_near_bounds(model, results.parameter_estimates)
PTVCL        False
PTVV         False
THETA_3      False
IVCL         False
IVV          False
SIGMA_1_1    False
dtype: bool