ljx529's picture
Duplicate from chuxuan/REPRO-Bench
c35658f
Raw
History Blame Contribute Delete
246 Bytes
function v = wfunc(c, s, EV, p)
[~, aprime] = savings(c, s, p);
v = c.^(1 - p.sigma)/(1 - p.sigma) - ...
p.phi^(1 + 1/p.gamma)/(1 + p.gamma)*c.^(-p.sigma*(1 + 1/p.gamma)) + p.beta*EV(aprime, s(:,2));