Greetings,
I am working on a basic nonlinear dsge model using the dsgenl command, but I would like the external shock to be not 1%, but 0.06%, or any other magnitude. is this possible in Stata?
Code:
Thanks,
I am working on a basic nonlinear dsge model using the dsgenl command, but I would like the external shock to be not 1%, but 0.06%, or any other magnitude. is this possible in Stata?
Code:
Code:
matrix param = (0.97, 0.36, 0.06, 0.95, 0.4)
matrix colnames param = beta alpha delta rho gamma
dsgenl ({gamma}/c*w = (1-{gamma})/(1-n))
( {beta} * c / F.c * (F.r +1 - {delta}) = 1 )
(y = k^({alpha}) * (a*n)^(1-{alpha}))
(y=c+i)
(F.k = i + (1-{delta})*k)
({alpha} * k^({alpha}-1) * (a*n)^(1-{alpha}) = r)
((1-{alpha}) * k^({alpha}) * n^(-{alpha}) *a^(1-{alpha}) = w)
(log(F.a) = {rho} * log(a))
, observed(y) unobserved(c i w n r) ///
endostate(k) exostate(a) ///
solve noidencheck from(param) nolog
estat steady, compact
estat policy, compact
irf set dsgeirf.irf
irf create model2, step(40) replace
irf graph irf, impulse(a) response(y c i n w a r k) irf(model2) byopts(yrescale) legend(cols(2)) noci
Thanks,
