View source: R/wages_inversion.R
wages_inversion | R Documentation |
Function to compute equilibrium wages that make the model labor in every location in equal to the observed data. It finds the w's such that equation (3.2) holds.
wages_inversion(
N,
w_init,
theta,
tau,
L_i,
L_j,
nu_init = 0.05,
tol = 10^-10,
maxiter = 10000
)
N |
Integer - Number of locations. |
w_init |
Initial vector of wages. |
theta |
Float - Commuting elasticity. |
tau |
NxN matrix - Commuting cost matrix across all locations. |
L_i |
Nx1 matrix - Number of residents in each location. |
L_j |
Nx1 matrix - Number of workers in each location. |
nu_init |
Float - Convergence parameter to update wages. Default nu=0.01. |
tol |
Float - Maximum tolerable error for estimating total labor. Default tol=10^-10. |
maxiter |
Integer - Maximum number of iterations for convergence. Default maxiter=10000. |
A list with equilibrium wages and probability of workers in each location working in every other location.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.