Skip to content

Commit

Permalink
update slides
Browse files Browse the repository at this point in the history
  • Loading branch information
alanlujan91 committed Jun 15, 2024
1 parent bd8c71d commit 896fda9
Show file tree
Hide file tree
Showing 18 changed files with 1,749 additions and 1,471 deletions.
155 changes: 30 additions & 125 deletions code/msm_notebooks/MSM Full Bequest model.ipynb

Large diffs are not rendered by default.

54 changes: 24 additions & 30 deletions code/msm_notebooks/MSM LCIM model.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
},
{
"cell_type": "code",
"execution_count": 1,
"execution_count": 2,
"metadata": {},
"outputs": [],
"source": [
Expand Down Expand Up @@ -70,7 +70,7 @@
},
{
"cell_type": "code",
"execution_count": 2,
"execution_count": 3,
"metadata": {},
"outputs": [
{
Expand All @@ -79,7 +79,7 @@
"<Axes: xlabel='age_lbl'>"
]
},
"execution_count": 2,
"execution_count": 3,
"metadata": {},
"output_type": "execute_result"
},
Expand Down Expand Up @@ -108,16 +108,16 @@
},
{
"cell_type": "code",
"execution_count": 3,
"execution_count": 4,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"<matplotlib.colorbar.Colorbar at 0x7fa6f7d9b3e0>"
"<matplotlib.colorbar.Colorbar at 0x7fe9b799c560>"
]
},
"execution_count": 3,
"execution_count": 4,
"metadata": {},
"output_type": "execute_result"
},
Expand Down Expand Up @@ -147,7 +147,7 @@
},
{
"cell_type": "code",
"execution_count": 4,
"execution_count": 5,
"metadata": {},
"outputs": [],
"source": [
Expand Down Expand Up @@ -201,7 +201,7 @@
},
{
"cell_type": "code",
"execution_count": 5,
"execution_count": 6,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -211,7 +211,7 @@
},
{
"cell_type": "code",
"execution_count": 6,
"execution_count": 7,
"metadata": {},
"outputs": [
{
Expand Down Expand Up @@ -241,7 +241,7 @@
},
{
"cell_type": "code",
"execution_count": 7,
"execution_count": 8,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -255,7 +255,7 @@
},
{
"cell_type": "code",
"execution_count": 8,
"execution_count": 9,
"metadata": {},
"outputs": [
{
Expand Down Expand Up @@ -297,7 +297,7 @@
},
{
"cell_type": "code",
"execution_count": 9,
"execution_count": 10,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -314,7 +314,7 @@
},
{
"cell_type": "code",
"execution_count": 10,
"execution_count": 11,
"metadata": {},
"outputs": [
{
Expand All @@ -336,7 +336,7 @@
" '(90,95]': array([91, 92, 93, 94, 95])}"
]
},
"execution_count": 10,
"execution_count": 11,
"metadata": {},
"output_type": "execute_result"
}
Expand All @@ -354,7 +354,7 @@
},
{
"cell_type": "code",
"execution_count": 11,
"execution_count": 12,
"metadata": {},
"outputs": [],
"source": [
Expand Down Expand Up @@ -392,7 +392,7 @@
},
{
"cell_type": "code",
"execution_count": 12,
"execution_count": 13,
"metadata": {},
"outputs": [
{
Expand All @@ -401,7 +401,7 @@
"<Axes: xlabel='age_lbl'>"
]
},
"execution_count": 12,
"execution_count": 13,
"metadata": {},
"output_type": "execute_result"
},
Expand Down Expand Up @@ -430,7 +430,7 @@
},
{
"cell_type": "code",
"execution_count": 13,
"execution_count": 14,
"metadata": {},
"outputs": [],
"source": [
Expand Down Expand Up @@ -464,30 +464,24 @@
},
{
"cell_type": "code",
"execution_count": 14,
"execution_count": 19,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
" value standard_error ci_lower ci_upper p_value free \\\n",
"CRRA 0 3.038009 0.227844 2.591442 3.484576 1.474017e-40 True \n",
"DiscFac 0 0.972248 0.003222 0.965933 0.978563 0.000000e+00 True \n",
"\n",
" stars \n",
"CRRA 0 *** \n",
"DiscFac 0 *** \n"
"None\n"
]
}
],
"source": [
"print(pd.concat(res.summary()))"
"pd.concat(res.summary()).to_html(\"../../content/slides/tables/lcim_results.html\")"
]
},
{
"cell_type": "code",
"execution_count": 15,
"execution_count": 16,
"metadata": {},
"outputs": [
{
Expand Down Expand Up @@ -537,7 +531,7 @@
},
{
"cell_type": "code",
"execution_count": 16,
"execution_count": 17,
"metadata": {},
"outputs": [
{
Expand Down Expand Up @@ -566,7 +560,7 @@
},
{
"cell_type": "code",
"execution_count": 17,
"execution_count": 18,
"metadata": {},
"outputs": [
{
Expand Down
446 changes: 24 additions & 422 deletions code/msm_notebooks/MSM TRP model.ipynb

Large diffs are not rendered by default.

33 changes: 8 additions & 25 deletions code/msm_notebooks/MSM Warm Glow Bequest model.ipynb

Large diffs are not rendered by default.

Loading

0 comments on commit 896fda9

Please sign in to comment.