How do I use this .MAT input file now? Do I replace it just in my Model8 file instead of “datafile=data1” I use “datafile=Slovenia” and in your code instead of “datafile=fs2000_data” I use again “datafile=Slovenia”?
What about in the second file that I need to run, “run.m”? I see no “datafile” command there, so where do I input the Slovenian data? Thank you.
Wow, so the following operation is done both by my run.m file and your paragraph?
“First, we try to estimate the DSGE model using a classical maximum likelihood approach to inference. Technically this is done by a Kalman filter approach. To run the Kalman filter procedure, initial values for the parameters of interest must be specified, however. Because likelihoods can have several peaks, we use multiple starting values. We do this to make sure that we indeed estimate the parameters that maximize the likelihood (or, in our case, minimize the negative log-likelihood, which is equivalent). To implement this, we set up a loop that performs 2,500 different draws of vectors of starting values. This indeed takes some time (several hours). Of course, you can reduce the number of draws and therefore the computational time. All this is done by running the script “run.m” placed in the folder “Searching for Starting Values - Full Sample”.”
No, because those variables are not defined in the context of our model. You need to read in the Excel file and assign its content to variables with the correct name.
Perfect. I corrected the mistake and now everything seems to be working.
However, you mentioned that results with the output of the mod file are stored somewhere. I see no output file in my destination folder. Could you tell me where are the results stored (what’s the name of the output file)? Thanks in advance!
It is in the output folder and ends with _results.mod. But if you use my code above, you would need to save the mode_parameter structure manually at the end of your run.
Yes, I am using your code, could you please tell me how to save the mode_parameter structure?
After the first (out of three) step in my testing is done, I want to move to the second one:
After we have found the starting values, the maximize the likelihood, we compute the standard errors of the estimated model parameters using a bootstrap approach. This is done by executing the script “booti.m”, which is placed in the folder “Computing Bootstrapped Standard Errors - Full Sample”
Perhaps, like for the first step, do you have again your code that I could use and bypass dr. Röhe’s code?