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 = {'PTVCL': 0.1, 'PTVV': 0.1, 'THETA_3': 0.1, 'IVCL': 0.1, 'IVV': 0.1, 'SIGMA_1_1': 0.1} >>> calculate_parameters_from_ucp(model, scale, values) PTVCL 0.004693 PTVV 1.00916 THETA_3 0.1 IVCL 0.0309626 IVV 0.031127999999999996 SIGMA_1_1 0.013241000000000001 dtype: object
See also
calculate_ucp_scale
Calculate the scale for conversion from ucps