Some clarifications

This forum is closed. You can read the posts but cannot write. We have migrated the forum to a new location where you will have to reset your password.
Forum rules
This forum is closed. You can read the posts but cannot write. We have migrated the forum to a new location (https://forum.dynare.org) where you will have to reset your password.

Some clarifications

Postby shubh » Tue Jul 29, 2014 6:01 pm

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 ?
shubh
 
Posts: 26
Joined: Tue Jul 29, 2014 5:54 pm

Re: Some clarifications

Postby jpfeifer » Tue Aug 05, 2014 9:08 am

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.
------------
Johannes Pfeifer
University of Cologne
https://sites.google.com/site/pfeiferecon/
jpfeifer
 
Posts: 6940
Joined: Sun Feb 21, 2010 4:02 pm
Location: Cologne, Germany

Re: Some clarifications

Postby shubh » Wed Aug 20, 2014 5:51 am

Thanks a lot.
shubh
 
Posts: 26
Joined: Tue Jul 29, 2014 5:54 pm

Re: Some clarifications

Postby shubh » Wed Aug 20, 2014 6:09 am

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.
Attachments
shubh.mod
(1.2 KiB) Downloaded 84 times
shubh
 
Posts: 26
Joined: Tue Jul 29, 2014 5:54 pm

Re: Some clarifications

Postby shubh » Wed Aug 20, 2014 6:16 am

I am unable upload my data file it seems, however the data is monthly unemployment rates from germany for the past 6 years.
shubh
 
Posts: 26
Joined: Tue Jul 29, 2014 5:54 pm

Re: Some clarifications

Postby jpfeifer » Wed Aug 20, 2014 7:05 am

Please upload everything in one zip-file.
------------
Johannes Pfeifer
University of Cologne
https://sites.google.com/site/pfeiferecon/
jpfeifer
 
Posts: 6940
Joined: Sun Feb 21, 2010 4:02 pm
Location: Cologne, Germany

Re: Some clarifications

Postby shubh » Wed Aug 20, 2014 7:14 am

zip file
Attachments
shubh.zip
(7.42 KiB) Downloaded 79 times
shubh
 
Posts: 26
Joined: Tue Jul 29, 2014 5:54 pm

Re: Some clarifications

Postby jpfeifer » Wed Aug 20, 2014 7:28 am

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.
Attachments
shubh.zip
(9.12 KiB) Downloaded 93 times
------------
Johannes Pfeifer
University of Cologne
https://sites.google.com/site/pfeiferecon/
jpfeifer
 
Posts: 6940
Joined: Sun Feb 21, 2010 4:02 pm
Location: Cologne, Germany

Re: Some clarifications

Postby shubh » Sun Aug 24, 2014 6:22 pm

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,
shubh
 
Posts: 26
Joined: Tue Jul 29, 2014 5:54 pm

Re: Some clarifications

Postby jpfeifer » Sun Aug 24, 2014 7:16 pm

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.
------------
Johannes Pfeifer
University of Cologne
https://sites.google.com/site/pfeiferecon/
jpfeifer
 
Posts: 6940
Joined: Sun Feb 21, 2010 4:02 pm
Location: Cologne, Germany

Re: Some clarifications

Postby shubh » Wed Aug 27, 2014 1:03 pm

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,
shubh
 
Posts: 26
Joined: Tue Jul 29, 2014 5:54 pm

Re: Some clarifications

Postby shubh » Wed Aug 27, 2014 4:55 pm

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 ?
shubh
 
Posts: 26
Joined: Tue Jul 29, 2014 5:54 pm

Re: Some clarifications

Postby jpfeifer » Wed Aug 27, 2014 8:55 pm

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.
------------
Johannes Pfeifer
University of Cologne
https://sites.google.com/site/pfeiferecon/
jpfeifer
 
Posts: 6940
Joined: Sun Feb 21, 2010 4:02 pm
Location: Cologne, Germany

Re: Some clarifications

Postby shubh » Fri Aug 29, 2014 7:01 am

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,
shubh
 
Posts: 26
Joined: Tue Jul 29, 2014 5:54 pm

Re: Some clarifications

Postby jpfeifer » Fri Aug 29, 2014 8:47 am

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.
------------
Johannes Pfeifer
University of Cologne
https://sites.google.com/site/pfeiferecon/
jpfeifer
 
Posts: 6940
Joined: Sun Feb 21, 2010 4:02 pm
Location: Cologne, Germany

Next

Return to Dynare help

Who is online

Users browsing this forum: No registered users and 4 guests