This is a research project website for solving individual-specific optimal allocation problems. This projects supports Nygaard, Sorensen, and Wang (2021).
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.
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:
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.