
function z=usmodel_g_ff(y)
z=zeros(47,1);
global ex_ ex_det_ it_ recur_

global calfa cbeta cbetabar ccs ccy cfc cg cgamma cgy chabb 
global chia chib chig chim chip chiq chiw cik cikbar cindp 
global cindw cinvs ciy cky clandap clandaw clk cmap cmaw constebeta 
global constelab constepinf conster cpie cprobp cprobw cr crdpi crdy crhoa 
global crhoas crhob crhog crhols crhoms crhopinf crhoqs crhow crk crkky 
global crpi crr cry csadjcost csigl csigma ctou ctrend curvp curvw 
global cw cwhlc cwly czcap 
usmodel_stst;
z(1) = 0*(1-calfa)*y(21)+1*y(21) -(calfa*y(55)+(1-calfa)*(y(63)));
z(2) = y(67) -((1/(czcap/(1-czcap)))*y(55));
z(3) = y(55) -((y(63))+y(42)-y(38));
z(4) = y(38) -(y(11)+y(67));
z(5) = y(36) -((1/(1+cbetabar*cgamma))*(y(9)+cbetabar*cgamma*y(71)+(1/( ...
cgamma^2*csadjcost))*y(50))+y(51));
z(6) = y(50) -(-y(57)-0*y(23)+(1/((1-chabb/cgamma)/(csigma*(1+chabb/cgamma) ...
)))*y(23)+(crk/(crk+(1-ctou)))*y(78)+((1-ctou)/(crk+(1-ctou)))*y(76));
z(7) = y(26) -((chabb/cgamma)/(1+chabb/cgamma)*y(4)+(1/(1+chabb/cgamma))* ...
y(69)+((csigma-1)*cwhlc/(csigma*(1+chabb/cgamma)))*(y(42)-y(73))-(1-chabb/ ...
cgamma)/(csigma*(1+chabb/cgamma))*(y(57)+0*y(23))+y(23));
z(8) = y(65) -(ccy*y(26)+ciy*y(36)+y(33)+crkky*y(67));
z(9) = y(65) -(cfc*(calfa*y(38)+(1-calfa)*y(42)+y(21)));
z(10) = y(63) -(csigl*y(42)+(1/(1-chabb/cgamma))*y(26)-(chabb/cgamma)/(1- ...
chabb/cgamma)*y(4));
z(11) = y(40) -((1-cikbar)*y(11)+(cikbar)*y(36)+(cikbar)*(cgamma^2* ...
csadjcost)*y(51));
z(12) = y(44) -(calfa*y(54)+(1-calfa)*(y(62))-1*y(21)-0*(1-calfa)*y(21));
z(13) = y(66) -((1/(czcap/(1-czcap)))*y(54));
z(14) = y(54) -(y(62)+y(41)-y(37));
z(15) = y(37) -(y(10)+y(66));
z(16) = y(35) -((1/(1+cbetabar*cgamma))*(y(8)+cbetabar*cgamma*y(70)+(1/( ...
cgamma^2*csadjcost))*y(49))+y(51));
z(17) = y(49) -(-y(53)+y(74)-0*y(23)+(1/((1-chabb/cgamma)/(csigma*(1+chabb/ ...
cgamma))))*y(23)+(crk/(crk+(1-ctou)))*y(77)+((1-ctou)/(crk+(1-ctou)))*y(75)) ...
;
z(18) = y(25) -((chabb/cgamma)/(1+chabb/cgamma)*y(3)+(1/(1+chabb/cgamma))* ...
y(68)+((csigma-1)*cwhlc/(csigma*(1+chabb/cgamma)))*(y(41)-y(72))-(1-chabb/ ...
cgamma)/(csigma*(1+chabb/cgamma))*(y(53)-y(74)+0*y(23))+y(23));
z(19) = y(64) -(ccy*y(25)+ciy*y(35)+y(33)+1*crkky*y(66));
z(20) = y(64) -(cfc*(calfa*y(37)+(1-calfa)*y(41)+y(21)));
z(21) = y(47) -((1/(1+cbetabar*cgamma*cindp))*(cbetabar*cgamma*y(74)+cindp* ...
y(13)+((1-cprobp)*(1-cbetabar*cgamma*cprobp)/cprobp)/((cfc-1)*curvp+1)*( ...
y(44)))+y(58));
z(22) = y(62) -((1/(1+cbetabar*cgamma))*y(18)+(cbetabar*cgamma/(1+cbetabar* ...
cgamma))*y(79)+(cindw/(1+cbetabar*cgamma))*y(13)-(1+cbetabar*cgamma*cindw)/( ...
1+cbetabar*cgamma)*y(47)+(cbetabar*cgamma)/(1+cbetabar*cgamma)*y(74)+(1- ...
cprobw)*(1-cbetabar*cgamma*cprobw)/((1+cbetabar*cgamma)*cprobw)*(1/((clandaw ...
-1)*curvw+1))*(csigl*y(41)+(1/(1-chabb/cgamma))*y(25)-((chabb/cgamma)/(1- ...
chabb/cgamma))*y(3)-y(62))+1*y(60));
z(23) = y(53) -(crpi*(1-crr)*y(47)+cry*(1-crr)*(y(64)-y(65))+crdy*(y(64)- ...
y(65)-y(19)+y(20))+crr*y(15)+y(45));
z(24) = y(39) -((1-cikbar)*y(10)+cikbar*y(35)+cikbar*cgamma^2*csadjcost* ...
y(51));
z(25) = y(21) -(chia*y(22));
z(26) = y(23) -(chib*y(24));
z(27) = y(33) -(chig*y(34));
z(28) = y(45) -(chim*y(46));
z(29) = y(51) -(chiq*y(52));
z(30) = y(58) -(chip*y(59));
z(31) = y(60) -(chiw*y(61));
z(32) = y(22) -(crhoa*y(1)+ex_(it_-1,1));
z(33) = y(24) -(crhob*y(2)+ex_(it_-1,2));
z(34) = y(34) -(crhog*y(7)+ex_(it_-1,3)+cgy*ex_(it_-1,1));
z(35) = y(46) -(crhoms*y(12)+ex_(it_-1,4));
z(36) = y(52) -(crhoqs*y(14)+ex_(it_-1,6));
z(37) = y(59) -(crhopinf*y(16)+y(31)-cmap*y(5));
z(38) = y(61) -(crhow*y(17)+y(32)-cmaw*y(6));
z(39) = y(31) -(ex_(it_-1,5));
z(40) = y(32) -(ex_(it_-1,7));
z(41) = y(30) -(y(64)-y(19)+ctrend);
z(42) = y(27) -(y(25)-y(3)+ctrend);
z(43) = y(28) -(y(35)-y(8)+ctrend);
z(44) = y(29) -(y(62)-y(18)+ctrend);
z(45) = y(48) -(1*(y(47))+constepinf);
z(46) = y(56) -(1*(y(53))+conster);
z(47) = y(43) -(y(41)+constelab);
