-
Notifications
You must be signed in to change notification settings - Fork 5
/
index.Rmd
53 lines (39 loc) · 3.81 KB
/
index.Rmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
---
title: "NSW Dynamic Life Cycle and Stimulus Checks Code Companion"
author: "Vegard M. Nygård, Bent E. Sørensen, and Fan Wang"
date: '`r format(Sys.Date(), "%Y-%m-%d")`'
site: bookdown::bookdown_site
documentclass: book
bibliography: [book.bib, packages.bib]
biblio-style: apalike
link-citations: yes
description: "NSW Dynamic Life Cycle and Stimulus Checks Code Companion"
output:
pdf_document:
toc: true
toc_depth: 5
pandoc_args: '_output_kniti_pdf.yaml'
includes:
in_header: 'preamble_book.tex'
html_document:
pandoc_args: '_output_kniti_html.yaml'
always_allow_html: true
github-repo: fanwangecon/PrjOptiSNW
---
```{r global_options, include = FALSE}
source(".Rprofile")
options(bookdown.render.file_scope = FALSE)
```
# Preface {-}
`r text_top_count`
This is a work-in-progress Matlab package consisting of functions that solve the dynamic life cycle model in [Nygård](https://sites.google.com/site/vegardmokleivnygaard/), [Sørensen](https://uh.edu/~bsorense/) and [Wang](https://fanwangecon.github.io/) (2021). The paper is titled [Optimal allocations to heterogeneous agents with an application to the COVID-19 stimulus checks](https://papers.ssrn.com/sol3/papers.cfm?abstract_id=3839890). [Nygård, Sørensen and Wang (2021)](https://papers.ssrn.com/sol3/papers.cfm?abstract_id=3839890) supersedes two prior papers, [Nygård, Sørensen and Wang (2020)](https://papers.ssrn.com/sol3/papers.cfm?abstract_id=3691091) as well as [Wang (2020)](https://papers.ssrn.com/sol3/papers.cfm?abstract_id=3547706). The code companion presents solutions to the dynamic life-cycle problem, and methods for evaluating the marginal gains from allocating additional stimulus checks. Tested with [Matlab](https://www.mathworks.com/products/matlab.html) 2020a [@matlab].
All functions are parts of a matlab toolbox that can be installed:
> Download and install the Matlab toolbox: [PrjOptiSNW.mltbx](https://github.com/FanWangEcon/PrjOptiSNW/blob/master/PrjOptiSNW.mltbx)
The Code Companion can also be accessed via the bookdown site and PDF linked below:
> [**bookdown pdf**](https://fanwangecon.github.io/PrjOptiSNW/bookdown/NSW-Dynamic-Life-Cycle-and-Stimulus-Checks-Code-Companion.pdf), [**MathWorks File Exchange**](https://www.mathworks.com/matlabcentral/fileexchange/80164-prjoptisnw)
This bookdown file is a collection of mlx based vignettes for functions that are available from [PrjOptiSNW](https://github.com/FanWangEcon/PrjOptiSNW). Each Vignette file contains various examples for invoking each function.
The package relies on [MEconTools](https://fanwangecon.github.io/MEconTools/), which needs to be installed first. The package does not include allocation functions, only simulation code to generate the value of each stimulus check increments for households. Allocation functions rely the R optimal allocation package [PrjOptiAlloc](https://fanwangecon.github.io/PrjOptiAlloc).
The files below largely document contents in the Matlab-based [PrjOptiSNW](https://github.com/FanWangEcon/PrjOptiSNW/tree/master/PrjOptiSNW) folder of the repository. The [AllocateR](https://github.com/FanWangEcon/PrjOptiSNW/tree/master/AllocateR) folder contains additional documentation for various functions and files that solve allocation problems based on functions in the R [PrjOptiAlloc](https://fanwangecon.github.io/PrjOptiAlloc) package and solutions csv files generated by the dynamic programming files from the Matlab-based [PrjOptiSNW](https://github.com/FanWangEcon/PrjOptiSNW/tree/master/PrjOptiSNW) folder. Some additional results for the paper are included in the [additional_results](https://github.com/FanWangEcon/PrjOptiSNW/tree/master/AllocateR/additional_results) folder.
The site is built using [Bookdown](https://bookdown.org/) [@R-bookdown].
Please contact [FanWangEcon](https://fanwangecon.github.io/) for issues or problems.
`r text_end_count`