Skip to content

Commit

Permalink
amss lecture literalinclude -> code-cell
Browse files Browse the repository at this point in the history
  • Loading branch information
mmcky committed Jan 6, 2021
1 parent 726a25f commit ff42684
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions lectures/amss.md
Original file line number Diff line number Diff line change
Expand Up @@ -411,8 +411,9 @@ in a Lucas-Stokey economy with state-contingent government debt.
We need some code from our {doc}`an earlier lecture <opt_tax_recur>`
on optimal taxation with state-contingent debt sequential allocation implementation:

```{literalinclude} _static/lecture_specific/opt_tax_recur/sequential_allocation.py
```{code-cell} python3
---
file: _static/lecture_specific/opt_tax_recur/sequential_allocation.py
tags: [output_scroll]
---
```
Expand Down Expand Up @@ -685,7 +686,8 @@ assets, returning any excess revenues to the household as non-negative lump-sum

The recursive formulation is implemented as follows

```{literalinclude} _static/lecture_specific/amss/recursive_allocation.py
```{code-cell} python3
:file: _static/lecture_specific/amss/recursive_allocation.py
```

## Examples
Expand All @@ -694,7 +696,8 @@ We now turn to some examples.

We will first build some useful functions for solving the model

```{literalinclude} _static/lecture_specific/amss/utilities.py
```{code-cell} python3
:file: _static/lecture_specific/amss/utilities.py
```

### Anticipated One-Period War
Expand Down Expand Up @@ -755,7 +758,8 @@ We assume the same utility parameters as in the {doc}`Lucas-Stokey economy <opt_

This utility function is implemented in the following class.

```{literalinclude} _static/lecture_specific/opt_tax_recur/crra_utility.py
```{code-cell} python3
:file: _static/lecture_specific/opt_tax_recur/crra_utility.py
```

The following figure plots the Ramsey plan under both complete and incomplete
Expand Down Expand Up @@ -876,7 +880,8 @@ $$

In accordance, we will re-define our utility function.

```{literalinclude} _static/lecture_specific/opt_tax_recur/log_utility.py
```{code-cell} python3
:file: _static/lecture_specific/opt_tax_recur/log_utility.py
```

With these preferences, Ramsey tax rates will vary even in the Lucas-Stokey
Expand Down

1 comment on commit ff42684

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.