• BFW Equilibrium Gender LFP and Wage Code Companion
  • Preface
  • 1 Introduction
    • 1.1 Bhalotra, Fernández, and Wang (2022)
  • 2 Core Functions
    • 2.1 CES Demand Core Functions
      • 2.1.1 Default Test
    • 2.2 Multinomial Logit Core Functions
      • 2.2.1 Test BL_LOG_WAGE is false
      • 2.2.2 Test BL_LOG_WAGE is false
    • 2.3 Equilibrium Core Functions
      • 2.3.1 Default Test
  • 3 Parameters
    • 3.1 bfw_mp_path
      • 3.1.1 Default Map of Path (Fan path)
      • 3.1.2 Map of Path for Alternative Path Installer
    • 3.2 bfw_mp_control
      • 3.2.1 Map of Control Parameters
    • 3.3 bfw_mp_param_esti
      • 3.3.1 Map of Estimated Parameters
  • 4 Data
    • 4.1 bfw_mp_data
      • 4.1.1 Get All Data
      • 4.1.2 Dataset 1
      • 4.1.3 Dataset 1 Aux
      • 4.1.4 Dataset 2
      • 4.1.5 Dataset 2 Aux
  • 5 Demand
    • 5.1 Solve Nested CES Optimal Demand (CRS)
      • 5.1.1 Key Inputs and Outputs for bfw_mp_func_demand
      • 5.1.2 Single Nest Layer Two Inputs CES Problem (Demand)
      • 5.1.3 Single Nest Layer Two Inputs CES Problem, Vary Share and Elasticity (Demand)
      • 5.1.4 Doubly Nest Layer Two Inputs Each Sub-nest CES Problem (Demand)
      • 5.1.5 Doubly Nest Layer Two Inputs Each Sub-nest CES Problem–Solution Check (Demand)
      • 5.1.6 BFW (2022) Nested Three Branch (Four Layer) Problem (Demand)
    • 5.2 Compute Nested CES MPL Given Demand (CRS)
      • 5.2.1 Key Inputs and Outputs for bfw_crs_nested_ces_mpl
      • 5.2.2 Single Nest Layer Two Inputs CES Problem (MPL)
      • 5.2.3 Single Nest Layer Two Inputs CES Problem, Vary Share and Elasticity (MPL)
      • 5.2.4 Doubly Nest Layer Two Inputs Each Sub-nest CES Problem
      • 5.2.5 BFW (2022) Nested Three Branch (Four Layer) Problem (MPL)
  • 6 Supply
    • 6.1 bfw_mlogit
      • 6.1.1 Default
      • 6.1.2 Visualize Supply Curves Different Years
  • 7 Equilibrium by Skill Nest Group
    • 7.1 Root Search Equilibrium Wage Equations By Skill Group
      • 7.1.1 Default
      • 7.1.2 Vary Parameters, Solve Equilibrium Quantities/Wages, Root Search
    • 7.2 Equilibrium W to Q to W Contraction By Skill Group
      • 7.2.1 Default
      • 7.2.2 Vary Parameters, Solve Equilibrium Quantities Wages, W to Q to W Contraction
  • Appendix
  • A Index and Code Links
    • A.1 Introduction links
    • A.2 Core Functions links
    • A.3 Parameters links
    • A.4 Data links
    • A.5 Demand links
    • A.6 Supply links
    • A.7 Equilibrium by Skill Nest Group links
  • PrjLabEquiBFW Bookdown

BFW Equilibrium Gender LFP and Wage Code Companion

A Index and Code Links

A.1 Introduction links

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

A.2 Core Functions links

  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()

A.3 Parameters links

  1. bfwx_mp_path: mlx | m | pdf | html
    • bfw_mp_path
    • PrjLabEquiBFW: bfw_mp_path()
  2. bfwx_mp_control: mlx | m | pdf | html
    • bfw_mp_control
    • PrjLabEquiBFW: bfw_mp_control()
  3. bfw_mp_param_esti: mlx | m | pdf | html
    • bfw_mp_param_esti
    • PrjLabEquiBFW: bfw_mp_param_esti()

A.4 Data links

  1. bfwx_mp_data: mlx | m | pdf | html
    • bfw_mp_data
    • PrjLabEquiBFW: bfw_mp_data()

A.5 Demand links

  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()

A.6 Supply links

  1. bfwx_mlogit: mlx | m | pdf | html
    • bfwx_mlogit
    • PrjLabEquiBFW: bfwx_mlogit()

A.7 Equilibrium by Skill Nest Group links

  1. bfw_solveequi_kwfw: mlx | m | pdf | html
    • bfw_solveequi_kwfw
    • PrjLabEquiBFW: bfw_solveequi_kwfw()
  2. bfw_solveequi_w2q2w: mlx | m | pdf | html
    • bfw_solveequi_w2q2w
    • PrjLabEquiBFW: bfw_solveequi_w2q2w()
The MathWorks Inc. 2021. MATLAB. https://www.mathworks.com/products/matlab.html.
Xie, Yihui. 2020. Bookdown: Authoring Books and Technical Documents with r Markdown. https://CRAN.R-project.org/package=bookdown.