loop in a mod file
Posted: Wed Sep 10, 2008 9:21 am
Dear all,
I want to estimate a bvar, using the bvar a la sims toolkit over a given sample and i want to reestimate it every quarter, as Smets and Wouters do in their aer (2007) paper. As an example in my do file, i try something like :
for i = 1:100
bvar_density(datafile = mydata, first_obs = myfirstobs, bvar_prior*, presample, nobs = 44 + i-1 (for instance))
end
I get an error message since dynare does not expect the "+" and the "-" in the options. Is there any way to solve the problem?
I would greatly appreciate your help.
Aqua!
I want to estimate a bvar, using the bvar a la sims toolkit over a given sample and i want to reestimate it every quarter, as Smets and Wouters do in their aer (2007) paper. As an example in my do file, i try something like :
for i = 1:100
bvar_density(datafile = mydata, first_obs = myfirstobs, bvar_prior*, presample, nobs = 44 + i-1 (for instance))
end
I get an error message since dynare does not expect the "+" and the "-" in the options. Is there any way to solve the problem?
I would greatly appreciate your help.
Aqua!