View on GitHub

Bhalotra, Fernández, and Wang (2022)

Code Repository for Bhalotra, Fernandez, and Wang (2022)

Star Fork Star DOI

This is a work-in-progress Matlab package consisting of functions that solve the equilibrium gender labor force participation and wage model in Bhalotra, Fernández and Wang (2022). Tested with Matlab 2021b.

All functions are parts of a matlab toolbox that can be installed:

Download and install the Matlab toolbox: PrjLabEquiBFW.mltbx

The Code Companion can also be accessed via the bookdown site and PDF linked below:

bookdown site, bookdown pdf, MathWorks File Exchange

This bookdown file is a collection of mlx based vignettes for functions that are available from PrjLabEquiBFW. Each Vignette file contains various examples for invoking each function.

The package relies on 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.

The site is built using Bookdown.

Please contact FanWangEcon for issues or problems.

Installation

In addition to downloading and installing PrjLabEquiBFW.mltbx, can also:

# Clone Package from Git Bash
cd "C:/Downloads"
git clone https://github.com/fanwangecon/PrjLabEquiBFW.git

Install the Package from inside Matlab:

# Install Matlab Toolbox PrjLabEquiBFW
toolboxFile = 'C:/Downloads/PrjLabEquiBFW/PrjLabEquiBFW.mltbx';
# toolboxFile = 'C:/Users/fan/PrjLabEquiBFW/PrjLabEquiBFW.mltbx';
agreeToLicense = true;
installedToolbox = matlab.addons.toolbox.installToolbox(toolboxFile, agreeToLicense)

1 Introduction

  1. The Labor Demand and Supply Problem: mlx | m | pdf | html
    • The Labor Demand and Supply Problem

2 Core Functions

  1. CES Demand Core Functions: mlx | m | pdf | html
    • This function generates a container map with key CES demand-side equation for a particular sub-nest.
    • PrjLabEquiBFW: bfw_mp_func_demand()
  2. Multinomial Logit Core Functions: mlx | m | pdf | html
    • This function generates a container map with key multinomial logit supply-side equations.
    • PrjLabEquiBFW: bfw_mp_func_supply()
  3. Equilibrium Core Functions: mlx | m | pdf | html
    • This function generates a container map with key equilibrium equations.
    • PrjLabEquiBFW: bfw_mp_func_equi()

3 Parameters

  1. bfwx_mp_path: mlx | m | pdf | html
  2. bfwx_mp_control: mlx | m | pdf | html
  3. bfw_mp_param_esti: mlx | m | pdf | html

4 Data

  1. bfwx_mp_data: mlx | m | pdf | html

5 Demand

  1. Solve Nested CES Optimal Demand (CRS): mlx | m | pdf | html
    • This function solves optimal choices given CES production function under cost minimization.
    • Works with Constant Elasticity of Substitution problems with constant returns, up to four nest layers, and two inputs in each sub-nest.
    • Takes as inputs share and elasticity parameters across layers of sub-nests, as well as input unit costs at the bottom-most layer.
    • Works with Constant Elasticity of Substitution problems with constant returns, up to four nest layers, and two inputs in each sub-nest.
    • PrjLabEquiBFW: bfw_crs_nested_ces()
  2. Compute Nested CES MPL Given Demand (CRS): mlx | m | pdf | html
    • Given labor quantity demanded, using first-order relative optimality conditions, find the marginal product of labor given CES production function.
    • Takes as inputs share and elasticity parameters across layers of sub-nests, as well as quantity demanded at each bottom-most CES nest layer.
    • Works with Constant Elasticity of Substitution problems with constant returns, up to four nest layers, and two inputs in each sub-nest.
    • Allows for uneven branches, so that some branches go up to four layers, but others have less layers, works with BFW (2022) nested labor input problem.
    • PrjLabEquiBFW: bfw_crs_nested_ces_mpl()

6 Supply

  1. bfwx_mlogit: mlx | m | pdf | html

7 Equilibrium by Skill Nest Group

  1. bfw_solveequi_kwfw: mlx | m | pdf | html
  2. bfw_solveequi_w2q2w: mlx | m | pdf | html

Please contact for issues or problems.

DOI

RepoSize CodeSize Language Release License