Example N=2 Discrete and Bounded-Continuous Optimal Allocation

Demonstrate optimal allocation and welfare between two simulated individuals graphically

Example Discrete and Bounded-Continuous Optimal Allocation for N=2

Test Theorem 1 and Theorem 2 optimal allocation functions when N=2. Use randomly generated A and alpha parameters for two individuals’ discrete and bounded-continuous allocation problems.

Discrete Optimal Allocation for N=2 and Welfare Distance REV

Compare welfare between all feasible discrete allocations and possible observed allocations when N=2.

Binary Allocation Testing Vignettes (mtcars, birthwt)

Testing the binary allocation solution line by line and with function. Use standard R testing datasets mtcars and birthwt. Test Welfare (REV) with hand-input example data.

Line by Line Test Binary Allocation with Linear Regression

Test binary optimal allocation solution line by line without function. Use the mtcars cars testing dataset. Regress MPG on manual vs auto shift.

Function Test Binary Allocation with Linear Regression

Test binary optimal allocation solution function from package. Use the the birthwt testing dataset. Regression birth weight on smoking status.

Welfare Test Resource Equivalent Variation (REV) Computation (Line by Line)

Line by line, calculate welfare distances, Resource Equivalent Variation (REV), for the Binary Allocation problem based on Theorem 1. Hand-input A and alpha values.

Resource Equivalent Variation with Two Individuals Analytical Example

With two individuals of heterogeneous A and alpha, demonstrate the REV comparisons between the actual allocation and optimal allocations by various planners. Work out core concepts.

Binary Allocation Example Vignettes with a Job Training RCT

Demonstrate optimal binary allocation queue. Use empirical A and alpha from the NSW job training RCT from Lalonde (AER, 1986).

Logit Employment Binary Allocation Lalonde Training Example

Logit employment regression estimation of A and alpha from the Lalonde Training Dataset (722 Observations). Solve for optimal binary allocation queues.

Logit Employment Binary Allocation Lalonde Training Example by Age Only

Logit employment regression estimation of A and alpha from the Lalonde Training Dataset (722 Observations). Solve for optimal binary allocation queues by Age only. Using only Age in employment predication and allocation determination.

Linear Wage Binary Allocation Lalonde Training Example

Linear wage regression estimation of A and alpha from the Lalonde Training Dataset (722 Observations). Solve for optimal binary allocation queues.

Wage and Employment Comparison Binary Allocation Lalonde Training Example

Welfare, Resource Equivalent Variation (REV), comparisons between wage and employment allocation results. Wage and Employment allocation space parameters comparison.

Discrete Allocation Testing Vignettes (Test Scores and Student-Teacher Ratio)

Testing the discrete allocation solution line by line and with function. Use the Student Test Score Data from Stock and Watson (2003).

Line by Line Discrete Allocation with Linear Regression

Test discrete optimal allocation solution line by line without function. Use the California student test score dataset. Regress student English and Math test scores on Student-Teacher-Ratio.

Function Test Discrete Allocation with Linear Regression

Test binary optimal allocation solution function from package. Use the California student test score dataset, same as line by line.

Linear-Continuous Allocation Testing Vignettes (Nutrition and Height)

Testing linear-continuous allocation solution line by line and with function. Nutrition and height Data from Puentes et. al. (2016)

Line by Line Test Bounded-Continuous Function with Height Nutrition Data

Given allocation space parameters (A, alpha), test the lower-bounded continuous optimal allocation line by line without function. This demonstrates relative optimality conditions, inverse optimal allocation, and optimal allocation.

Allocation Test Bounded-Continuous Function with Height Nutrition Data

Given allocation space parameters (A, alpha), test the lower-bounded continuous optimal allocation function. Compare inequality measures given optimal allocations across planner preferences.

Line by Line Test Lower-Bounded Linear-Continuous Allocation with Linear Regression

Test the lower-bounded linear-continuous optimal allocation solution line by line without function. Use the Guatemala-Cebu scrambled nutrition and height early childhood data. Regress the effect of nutritional supplements on height.

Function Test Lower-Bounded Linear-Continuous Allocation with Linear Regression

Test the lower-bounded linear-continuous optimal allocation solution function from package. Use the Guatemala-Cebu scrambled nutrition and height early childhood data, same as line by line.

Log-Linear Continuous Allocation Testing Vignettes (Nutrition and Height)

Testing log-linear decreasing returns allocation solution line by line and with function. Nutrition and height Data from Puentes et. al. (2016). Results not included in the paper. Results not closed-form, requires root search.

Line by Line Test Log Linear Allocation Test

Given allocation space parameters (A, alpha) for log linear regression, test log-linear optima allocation line by line. The result is not included in the final version of the paper, because the results are not closed-form, but are based on a root search. The root search is very fast when initial condition is zero.

Generate Estimation Space Parameters

Vignette that only conducts estimations and generate A and alpha for estimation space. Most A and alpha generated in various other files as well that also solve for optimal allocation.

Generate A and alpha Nutrition Height Test Regression Results

Generate A and alpha based on a linear regression. Four categories based on initial height and mother education levels (Guatemala and Cebu dataset). Regress height on protein inputs allowing for heterogeneous effects for each of the four categories.

Optimal Stimulus Allocation and the Economic Stimulus Act of 2008

Vignette that test functions related to the Economic Stimulus Act off 2008 for Nygård, Sørensen and Wang (2021)

Bush Checks from the Economic Stimulus Act of 2008

In 2008, the Bush administration sent out stimulus checks as tax rebates. The checks are a function of income, marital status, and the number of children. We have functions that computable taxable income given income, tax liability given income, and also stimulus amount given income.