Function to solve counterfactuals.
solveModel(
N,
L_i,
L_j,
K,
t_ij,
a,
b,
varphi,
w_eq,
u_eq,
U_eq,
Q_eq,
ttheta_eq,
alpha = 0.7,
beta = 0.7,
theta = 7,
mu = 0.3,
delta = 0.3585,
lambda = 0.01,
rho = 0.9094,
eta = 0.15,
epsilon = 0.01,
zeta = 0.95,
varrho = 3,
sh_city = 0.1,
tol = 10^-10,
maxiter = 1000
)A list containing new equilibrium values for the variables of the model. The reported variables are wages (w), residents market access (W_i), endogenous productivities (A), endogenous amenities (B), population (Li), employment (Lj), share of commercial floorspace (ttheta), real income (u), welfare (U), firms market access (FCMA), firms output (Y).
Integer - Number of locations.
Nx1 array - Number of residents in each location
Nx1 array - Number of workers in each location
Nx1 array - Land supply
NxN matrix - Travel times across locations
Nx1 array - Total Factor Productivity in each location
Nx1 array - Vector of amenities in each location
Nx1 array - Density of development
Nx1 array - Initial vector of wages
Nx1 array - Initial vector of welfare
1x1 array - Initial welfare
Nx1 array - Initial price for floorspace
Nx1 array - Share of floorspace used commercially
Float - Exp. share in consumption, 1-alpha exp. share in housing
Float - Output elasticity with respect to labor
Float - Commuting and migration elasticity.
Float - Floorspace prod function: output elasticity wrt capital
Float - Decay parameter agglomeration force
Float - agglomeration externality
Float - decay parameter for amenities
Float - amenity externality
Float - Parameter that transforms travel times to commuting costs
Float - convergence parameter
Float - migration elasticty
Share of population living in the city
Float - tolerance factor
Integer - Maximum number of iterations for convergence. Default maxiter=1000.