calculate_aic#

pharmpy.modeling.calculate_aic(model, likelihood)[source]#

Calculate AIC

AIC = -2LL + 2*n_estimated_parameters

Parameters:
  • model (Model) – Pharmpy model object

  • likelihood (float) – -2LL

Returns:

float – AIC of model fit