Page 1 of 1

ALMOST THERE... NEED SOME ADVICE, PLEASE :)

PostPosted: Fri Jan 06, 2017 7:43 pm
by MSC_1991
:D Hello! Thank you for taking your time to help me!

I'm writing a code to run some shocks to a small open economy with formal and informal markets plus corruption in steady state.

Nevertheless, my code has some problems and won't run.

I kindly request any advice or suggestion, I'm very grateful for even the most minor improvement!

Thank you so much!

Re: ALMOST THERE... NEED SOME ADVICE, PLEASE :)

PostPosted: Sun Jan 08, 2017 7:15 pm
by jpfeifer
Please try with F9 in Matlab to sequentially execute your parameter definitions. You will see that
Code: Select all
nf_ss

is not defined yet when you use it to compute
Code: Select all
k_ss

Another remark: you are not handling parameter dependence correctly. For stoch_simul this is no problem, but is nevertheless dangerous. See Pfeifer(2013): "A Guide to Specifying Observation Equations for the Estimation of DSGE Models" https://sites.google.com/site/pfeiferecon/Pfeifer_2013_Observation_Equations.pdf

Re: ALMOST THERE... NEED SOME ADVICE, PLEASE :)

PostPosted: Sun Jan 22, 2017 5:25 pm
by MSC_1991
Thank you so much!