plot_iofv_vs_iofv#

pharmpy.modeling.plot_iofv_vs_iofv(iofv1, iofv2, name1, name2)[source]#

Plot individual OFV of two models against each other

Parameters:
  • iofv1 (pd.Series) – Estimated iOFV of the first model

  • iofv2 (pd.Series) – Estimated iOFV of the second model

  • name1 (str) – Name of first model

  • name2 (str) – Name of second model

Returns:

alt.Chart – Scatterplot

Examples

from pharmpy.modeling import plot_iofv_vs_iofv
from pharmpy.tools import load_example_modelfit_results

res1 = load_example_modelfit_results("pheno")
res2 = load_example_modelfit_results("pheno_linear")
plot_iofv_vs_iofv(res1.individual_ofv, res2.individual_ofv, "nonlin", "linear")