calculate_parameters_from_ucp#

pharmpy.modeling.calculate_parameters_from_ucp(model, scale, ucps)[source]#

Scale parameter values from ucp to normal scale

Parameters:
  • model (Model) – Pharmpy model

  • scale (UCPScale) – A parameter scale

  • ucps (pd.Series or dict) – Series of parameter values

Returns:

pd.Series – Parameters on the normal scale

Examples

>>> from pharmpy.modeling import *
>>> model = load_example_model("pheno")
>>> scale = calculate_ucp_scale(model)
>>> values = {'POP_CL': 0.1, 'POP_VC': 0.1, 'COVAPGR': 0.1,                   'IIV_CL': 0.1, 'IIV_VC': 0.1, 'SIGMA': 0.1}
>>> calculate_parameters_from_ucp(model, scale, values)
POP_CL                 0.004693
POP_VC                  1.00916
COVAPGR                     0.1
IIV_CL                0.0309626
IIV_VC     0.031127999999999996
SIGMA                 0.0130865
dtype: object

See also

calculate_ucp_scale

Calculate the scale for conversion from ucps