Basic RBC(Hansen(1985))

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.

Basic RBC(Hansen(1985))

Postby blue » Mon Jul 22, 2013 2:28 am

Hello,

I just want to replicate a basic RBC model with indivisible labor(Hansen, 1985).

However, I had an error message:

>> dynare rbc

Configuring Dynare ...
[mex] Generalized QZ.
[mex] Sylvester equation solution.
[mex] Kronecker products.
[mex] Sparse kronecker products.
[mex] Local state space iteration (second order).
[mex] Bytecode evaluation.
[mex] k-order perturbation solver.
[mex] k-order solution simulation.
[mex] Quasi Monte-Carlo sequence (Sobol).
[mex] Markov Switching SBVAR.

Starting Dynare (version 4.3.3).
Starting preprocessing of the model file ...
Found 6 equation(s).
Evaluating expressions...done
Computing static model derivatives:
- order 1
Computing dynamic model derivatives:
- order 1
Processing outputs ...done
Preprocessing completed.
Starting MATLAB/Octave computing.

Error: File: rbc.m Line: 90 Column: 1
Unexpected MATLAB operator.

Error in dynare (line 120)
evalin('base',fname) ;

>>

Can you guys explain to me why I got an error?

FYI, the utility function is U(c,n)=log(c)-Bn, gamma is a growth rate, and lambda is a Lagrangian multiplier.

Thanks.
Attachments
RBC.mod
(556 Bytes) Downloaded 285 times
blue
 
Posts: 4
Joined: Thu Jul 05, 2012 2:43 am

Re: Basic RBC(Hansen(1985))

Postby jpfeifer » Mon Jul 22, 2013 6:41 am

Because there is a fullstop after the semicolon in the first line of your mod-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: Basic RBC(Hansen(1985))

Postby marcos_tex » Fri Nov 07, 2014 11:21 pm

Hi, same problem - I get the error "unexpected MATLAB expression" and then . I feel like I probably have some silly mistake and the problem seems to be on the line with "evalin('base',fname) "

My code is here, pretty rudimentary as it is my first dynare code. So it is possible that the problem is a deeper one of identification, but hopefully it is something silly that I am missing
Attachments
three_a.mod
(296 Bytes) Downloaded 150 times
marcos_tex
 
Posts: 1
Joined: Fri Nov 07, 2014 11:18 pm

Re: Basic RBC(Hansen(1985))

Postby jpfeifer » Sat Nov 08, 2014 9:56 am

On my machine your posted file runs. The only problem is that you seem to be trying to determine a price level that is undeterminate (only inflation seems to be determined, see my Guide to Observation Equations).
------------
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: Basic RBC(Hansen(1985))

Postby jpfeifer » Sat Aug 22, 2015 4:06 pm

A replication file is now available at https://github.com/JohannesPfeifer/DSGE_mod
------------
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


Return to Dynare help

Who is online

Users browsing this forum: Google [Bot] and 4 guests