-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfindPEVfun.m
13 lines (11 loc) · 915 Bytes
/
findPEVfun.m
1
2
3
4
5
6
7
8
9
10
11
12
13
% Finds partial equilibrium steady-state value function
% for a given wage "wbar"
global mu alpha noise lbar ksi
param; % load macro parameters
adjparams; % load idiosyncratic shock and adjustment parameters
makegrids; % make price and cost grids
setmat; % construct payoff and value matrices
V = Vflex; % intial guess for value function
Cbar = (wbar/chi)^(1/gamma); % compute Cbar based on candidate wage "wbar"
PAYOFFMAT = Cbar*PMAT.^(-epsilon).*(PMAT-wbar*sMAT); % compute payoff matrix
V_iter; % get value function given Cbar, wbar and PAYOFFMAT