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,
verbose = FALSE
)A list with equilibrium wages and probability of workers in each location working in every other location.
Integer - Number of locations.
Initial vector of wages.
Float - Commuting elasticity.
NxN matrix - Commuting cost matrix across all locations.
Nx1 matrix - Number of residents in each location.
Nx1 matrix - Number of workers in each location.
Float - Convergence parameter to update wages. Default nu=0.01.
Float - Maximum tolerable error for estimating total labor. Default tol=10^-10.
Integer - Maximum number of iterations for convergence. Default maxiter=10000.
Boolean - Equal to TRUE to print verbose.