Page 1 of 2
Some clarifications
Posted:
Tue Jul 29, 2014 6:01 pm
by shubh
I had some clarifications regarding specifying some variables,
1- Is it possible to specify a markov transition matrix for a variable ?
2- Is it possible to have an exogenous variable normally distributed with mean different from 0, which is not shocked ?
Re: Some clarifications
Posted:
Tue Aug 05, 2014 9:08 am
by jpfeifer
1. No. The shock processes in Dynare are continuous variables
2. This is equivalent to adding a constant to a mean 0 normally distributed variable. You can enter it this way.
Re: Some clarifications
Posted:
Wed Aug 20, 2014 5:51 am
by shubh
Thanks a lot.
Re: Some clarifications
Posted:
Wed Aug 20, 2014 6:09 am
by shubh
Thanks for you reply,
I'm trying to replicate this paper (
http://www.nber.org/papers/w19208.pdf) with some modifications. Their appendix has the dynare code.
I have coded my model and I get the required steady states for the log-linear model.
I then convert the logged variables N, into its percentage level which is the rate of employment. I then subtract it from one to get the unemployment rates.
However, I am unable to estimate my parameters. I first got a remark that I should use the use_calibration option with the estimated_params_init block. Once I did this the
next error was that "Cannot use parameter values from calibration as they violate the prior bounds". I have tried it with "s" which is the job separation rate and "bet" the discount factor.
Both give the same errors,
I am wondering what the issue could be. My data file of unemployment rates has been attached too.
Regards,
Thanks in advance.
Re: Some clarifications
Posted:
Wed Aug 20, 2014 6:16 am
by shubh
I am unable upload my data file it seems, however the data is monthly unemployment rates from germany for the past 6 years.
Re: Some clarifications
Posted:
Wed Aug 20, 2014 7:05 am
by jpfeifer
Please upload everything in one zip-file.
Re: Some clarifications
Posted:
Wed Aug 20, 2014 7:14 am
by shubh
zip file
Re: Some clarifications
Posted:
Wed Aug 20, 2014 7:28 am
by jpfeifer
1. The shocks-block belongs before the estimation command, otherwise the variance will be set to 0 and use_calibration will fail due to stochastic singularity of your calibration.
2. The data in the Excel file has no headers. I added them
3. You did not divide your unemployment rate in the data by 100 to make it equivalent to the variable in your model. I also did that.
A running version is attached.
Re: Some clarifications
Posted:
Sun Aug 24, 2014 6:22 pm
by shubh
Thanks a lot. Also when we have the log-linear model the impulse responses are in terms of the log deviations from steady state which can be interpreted as percentage deviations. However, I was wondering if we could get the impulse responses in level terms. The log-variables converted into level terms also have the irf with 0 steady state, i was wondering how we could get the irf's for the level variables in terms of the levels itself.
Regards,
Re: Some clarifications
Posted:
Sun Aug 24, 2014 7:16 pm
by jpfeifer
Just add the steady state to them. You must do that manually. See the manual on where the steady states and the IRFs are stored.
Re: Some clarifications
Posted:
Wed Aug 27, 2014 1:03 pm
by shubh
Thanks a lot, another query that I had is,
In my data if I have monthly data from 2007 on wards till 2014, then in my model if I shock my exogenous variable in the 12th period will it correspond to a shock in 2008 and be incorporated in the estimation process while using my data ?
Kind regards,
Re: Some clarifications
Posted:
Wed Aug 27, 2014 4:55 pm
by shubh
Also, When I have one stochastic shock process and one deterministic shock (say in period 12), Is the deterministic shock anticipated or unanticipated ?
Is there any way to have an unanticipated shock in a later period such that agents dont respond to it during the first 11 periods ?
Re: Some clarifications
Posted:
Wed Aug 27, 2014 8:55 pm
by jpfeifer
Maybe I am misinterpreting what you are asking. Please try to explain what you are trying to model.
First post: No, the specified deterministic shocks using varexo_det do not enter estimation at all. The only information used during estimation is the data and all shocks are inferred from the data.
Second post: From the manual entry for varexo_det
It is possible to mix deterministic and stochastic shocks to build models where agents know
from the start of the simulation about future exogenous changes.
That means, there is perfect forsight here: the agents know at time 0 that there will be a one-time shock at time 12.
The "unanticipated shock in a later period such that agents dont respond to it during the first 11 periods" is just your standard stochastic shock.
Re: Some clarifications
Posted:
Fri Aug 29, 2014 7:01 am
by shubh
Thanks a lot Sir,
I mostly had doubts regarding what you explained and things are much clearer to me now, so thanks a lot.
Just to clarify
1 - What did you exactly mean by that all shocks are inferred from the data ? To what extent does the specification of the stochastic shocks matter as in its AR process and standard deviation in estimation.
2 - There is no way to have a surprise deterministic shock, because a fall in the deterministic shocks value in some period after the economy begins will always be taken into account in previous periods because of prefect foresight.
Regards,
Re: Some clarifications
Posted:
Fri Aug 29, 2014 8:47 am
by jpfeifer
1. With the shocks-block you specify the stochastic processes of the state-space system. The autocorrelation and variance of the processes is either fixed or estimated. But the actual shock realizations are estimated as the residuals from the state-space system.
2. Sorry, but I do not know that a "surprise determinstic shock" is. This is an oxymoron.