How to store the constant term in policy and transition func
Posted: Tue Sep 01, 2009 4:21 am
Hi all,
I want to run a loop in my mod file and for certain parameters in my model I want to be able to save the constant term in the policy and transition output of the variable of interest. I do a second order approximation to the welfare in my model and every time I run the dynare it gives me the policy and transition functions output in the command window. Since I want to save this each time I run my mod file, I am wondering where the following output is stored in dynare.
POLICY AND TRANSITION FUNCTIONS
welfare
Constant 42.708791
(correction) 0.097825
dg (-1) 0.045723
dgm (-1) 0.312067
DM (-1) 0.189854
pm (-1) -0.141491
zf (-1) -15.838252
zm (-1) -8.021038
epsf -16.671844
epsm -8.443198
DM (-1),dg (-1) -0.010713
DM (-1),dgm (-1) 0.145147
DM (-1),DM (-1) 0.040526
pm (-1),dg (-1) 1.010847
pm (-1),DM (-1) 0.546090
pm (-1),pm (-1) 10.073796
zf (-1),epsf 17.377550
zf (-1),epsm -8.389466
zm (-1),epsf -8.389466
zm (-1),epsm 4.288687
I looked into forum, I found the coefficients of policy and transition functions are stored in dr_.ghx and dr_.ghu in dynaver v3. I only need the constant term and it is neither in dr_.ghx nor dr.ghu. I am using dynare v3.
I greatly appreciate any help you may suggest.
Thanks,
Elif.
I want to run a loop in my mod file and for certain parameters in my model I want to be able to save the constant term in the policy and transition output of the variable of interest. I do a second order approximation to the welfare in my model and every time I run the dynare it gives me the policy and transition functions output in the command window. Since I want to save this each time I run my mod file, I am wondering where the following output is stored in dynare.
POLICY AND TRANSITION FUNCTIONS
welfare
Constant 42.708791
(correction) 0.097825
dg (-1) 0.045723
dgm (-1) 0.312067
DM (-1) 0.189854
pm (-1) -0.141491
zf (-1) -15.838252
zm (-1) -8.021038
epsf -16.671844
epsm -8.443198
DM (-1),dg (-1) -0.010713
DM (-1),dgm (-1) 0.145147
DM (-1),DM (-1) 0.040526
pm (-1),dg (-1) 1.010847
pm (-1),DM (-1) 0.546090
pm (-1),pm (-1) 10.073796
zf (-1),epsf 17.377550
zf (-1),epsm -8.389466
zm (-1),epsf -8.389466
zm (-1),epsm 4.288687
I looked into forum, I found the coefficients of policy and transition functions are stored in dr_.ghx and dr_.ghu in dynaver v3. I only need the constant term and it is neither in dr_.ghx nor dr.ghu. I am using dynare v3.
I greatly appreciate any help you may suggest.
Thanks,
Elif.