This is a research project website for solving individual-specific optimal allocation problems. This projects supports Nygaard, Sorensen, and Wang (2021).

Support Projects

  • “Optimal Allocations to Heterogeneous Agents with An Application to Stimulus Checks”: This project supports Nygaard, Sorensen, and Wang (2021), which focuses on stimulus check and tax rebate optimal allocation problems. PrjOptiSNW solves the dynamic programming problems for the paper, and this project handles solving optimal stimulus allocation problems.
  • “The Optimal Allocation of Resources among Heterogeneous Individuals”: This project supports Nygaard, Sorensen, and Wang (2020), which focuses on COVID-19 stimulus checks related problems. PrjOptiSNW solves the dynamic programming problems for the paper, and this project handles solving optimal stimulus allocation problems.
  • “The Optimal Allocation of Resources Among Heterogeneous Individuals”: This project supports Wang (2020), which focuses on generic optimal allocation problems.

Usage

The Functions tab provides a list of functions that implements discrete and bounded-continuous optimal allocation problems. It also includes estimation functions, data functions, and other support functions.

The Tutorials tab provides groups of vignettes that solve the various types of optimal allocation problems step-by-step from raw data to optimal allocation queues without invoking external functions. These step by step results are converted into ingredients of different functions. Some Vignettes solve for optimal allocation programs by calling these functions directly rather than solving step-by-step.

Data

To demonstrate intuitions graphically, the Tutorials tab provides numerical examples when the number of candidate recipients of allocations is two. Most files under the Tutorials tab use empirical data where the number of candidate recipients is several hundred or more. For these problems, computational brute-force comparison methods quickly become intractable due to factorially increasing choice-sets and exponentially increasing state-spaces. We provide closed-form solutions to several classes of optimal allocation problems under CES preference aggregation. The computational burden of the solutions increases only linearly with the number of candidate recipients of allocations.

Datasets used include:

  1. R Testing Dataset Birth Weight
  2. R Testing Dataset mtcars
  3. California Test Score Data from Stock and Watson (2003)
  4. NSW Job Training Data from Lalonde (1986)
  5. Guatemala and Philippines Nutrition and Height Data from Puentes el. al (2006)
  6. See Nygaard, Sorensen, and Wang (2021) and Nygaard, Sorensen, and Wang (2020) for relevant data structures in those settings.

Installation

The tools here depend on base R, tidyverse, and tidymodels. After installing those, two packages should be installed, fan’s REconTools, which provides a number of support tools required, as well as this package itself PrjOptiAllocs. For installation help, see devtools.

Installing the package will download all datasets, functions as well as vignettes associated with the project.

# To Install the Programs in the R folder of the REconTools Repository
devtools::install_github("fanwangecon/PrjOptiAlloc")
# There are various dependencies that need to be installed, including
devtools::install_github("fanwangecon/REconTools")

See here for all of Fan’s public repositories. Please contact FanWangEcon for issues or problems.


Please contact for issues or problems.

RepoSizeCodeSizeLanguageReleaseLicense