transform_etas_tdist#
- pharmpy.modeling.transform_etas_tdist(model, list_of_etas=None)[source]#
Applies a t-distribution transformation to selected etas
Initial estimate for degrees of freedom is 80 with bounds (3, 100).
- Parameters:
model (Model) – Pharmpy model to apply t distribution transformation to.
list_of_etas (str, list) – Name/names of etas to transform. If None, all etas will be transformed (default).
- Returns:
Model – Pharmpy model object
Examples
>>> from pharmpy.modeling import * >>> model = load_example_model("pheno") >>> model = transform_etas_tdist(model, ["ETA_CL"]) >>> model.statements.before_odes.full_expression("CL") POP_CL*WGT*exp(ETA_CL*(1 + (ETA_CL**2 + 1)/(4*df1) + (5*ETA_CL**4 + 16*ETA_CL**2...