.. DO NOT EDIT. .. THIS FILE WAS AUTOMATICALLY GENERATED BY SPHINX-GALLERY. .. TO MAKE CHANGES, EDIT THE SOURCE PYTHON FILE: .. "generated_examples\nestedlife\plot_actest.py" .. LINE NUMBERS ARE GIVEN BELOW. .. only:: html .. note:: :class: sphx-glr-download-link-note Click :ref:`here ` to download the full example code .. rst-class:: sphx-glr-example-title .. _sphx_glr_generated_examples_nestedlife_plot_actest.py: nestedlife: Actual vs Estimated ================================ Lapse assumption changes based on previous year experience. .. seealso:: * The :mod:`~nestedlife` library .. GENERATED FROM PYTHON SOURCE LINES 10-35 .. image-sg:: /generated_examples/nestedlife/images/sphx_glr_plot_actest_001.png :alt: PolsSurr, PolsIF_End :srcset: /generated_examples/nestedlife/images/sphx_glr_plot_actest_001.png :class: sphx-glr-single-img .. code-block:: default import modelx as mx model = mx.read_model("model") # Policy point ID and aliases polid = 171 outer = model.OuterProj[polid] inner = outer.InnerProj # Code block for overriding the default model outer.asmp.SurrRateMult[1] = 2 outer.asmp.SurrRateMult[2] = 0.5 outer.asmp.SurrRateMult[3] = 1 inner[1].asmp.SurrRateMult[1] = 2 inner[2].asmp.SurrRateMult[2] = 0.5 inner[3].asmp.SurrRateMult[3] = 1 # Code block for drawing graphs from draw_charts import draw_actest_pairs draw_actest_pairs(outer, inner, ['PolsSurr', 'PolsIF_End'], 5, 10) .. rst-class:: sphx-glr-timing **Total running time of the script:** ( 0 minutes 0.878 seconds) .. _sphx_glr_download_generated_examples_nestedlife_plot_actest.py: .. only:: html .. container:: sphx-glr-footer sphx-glr-footer-example .. container:: sphx-glr-download sphx-glr-download-python :download:`Download Python source code: plot_actest.py ` .. container:: sphx-glr-download sphx-glr-download-jupyter :download:`Download Jupyter notebook: plot_actest.ipynb ` .. only:: html .. rst-class:: sphx-glr-signature `Gallery generated by Sphinx-Gallery `_