Dynare Error

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.

Dynare Error

Postby samster » Thu Jul 01, 2010 7:20 pm

Hi All:

I am new to Dynare and i keep getting the following error but i am not sure what i am doing wrong. Maybe the model is not specified properly.

ERROR: gali08.mod:4.6: character unrecognized by lexer
Starting Dynare (version 4.1.2).
Starting preprocessing of the model file ...

error: DYNARE: preprocessing failed
error: called from:
error: c:\dynare\4.1.2\matlab\dynare.m at line 126, column 1
octave-3.2.4.exe:2>
Attachments
gali08.mod
Here are my codes
(605 Bytes) Downloaded 151 times
samster
 
Posts: 16
Joined: Thu Jul 01, 2010 7:08 pm

Re: Dynare Error

Postby samster » Thu Jul 01, 2010 8:47 pm

I just realized that using A and a to represent 2 variables will not work. After correcting for this i still get the problem identified above.
samster
 
Posts: 16
Joined: Thu Jul 01, 2010 7:08 pm

Re: Dynare Error

Postby jpfeifer » Fri Jul 02, 2010 6:22 am

1. Don't use ~ in the variable names. This is not allowed.
2. Put a * in line 19 after 0.5.
3. Define lambda.
4. Correct the shocks block. You do not define the autoregressive process here. That belongs in the model block. Instead define the standard deviation here. See manual p. 21
5. Define the process for the second exogenous variable au.
------------
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: Dynare Error

Postby samster » Fri Jul 02, 2010 6:41 am

Thanks very much. I will incorporate your suggestions. I have another post in which i had already figured out your 1st 3 comments, so i will now focus on the other suggestions. That said you may ignore that post. Thanks again.
samster
 
Posts: 16
Joined: Thu Jul 01, 2010 7:08 pm

Re: Dynare Error

Postby rdoctors » Tue Aug 11, 2015 7:38 pm

Hello, I'm new to dynare and I'm having the same problem. I don't know what would be wrong though because it seems to be written correclty and the parameter is already defined.
The error is: line 48, col 9: character unrecognized by lexer.
Thank you for your attention,

Rebeca
Attachments
modelo_fiscal_ajs_tax_novo2.mod
(15.44 KiB) Downloaded 75 times
rdoctors
 
Posts: 9
Joined: Tue Jul 28, 2015 8:43 pm

Re: Dynare Error

Postby jpfeifer » Wed Aug 12, 2015 5:48 am

I am not sure what you did there, but in the respective lines that appear like
Code: Select all
cc_ss =  1.4576;

there actually an invisible character in front of the number at exactly the location given. This happens at various other places. To see this, you can open your file in MS Word and let it display invisible characters: http://www.techf5.com/1899/view-special-characters-symbols-ms-word/
------------
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: Dynare Error

Postby rdoctors » Wed Aug 12, 2015 5:01 pm

thank you very much! that was it ! another thing that I did was just to type the code in the console and then it showed already where there were invisible characters!
rdoctors
 
Posts: 9
Joined: Tue Jul 28, 2015 8:43 pm

Re: Dynare Error

Postby rdoctors » Wed Aug 12, 2015 5:55 pm

Hello, I have another issue in my script. I'm using a version where variables and parameters are specified each line, as for example:

var y, pib, def;
parameters def_y,phi, rho;

var x, b, r;
parameters gamma;

and another version where vars and parameters are together.

The first version is found under the name teste2.mod and the second one is the other.

The first version works just fine, but the second one (where vars and parameters are together) gives the following error: error: matrix cannot be indexed with . (the "." is included in the error message).

Do you have any idea of what could it be ?I haven't found anything in the forums and the internet. Thank you for your attention!
Attachments
modelo_fiscal_ajs_tax_novo2.mod
(15.17 KiB) Downloaded 71 times
teste2.mod
(21.47 KiB) Downloaded 65 times
rdoctors
 
Posts: 9
Joined: Tue Jul 28, 2015 8:43 pm

Re: Dynare Error

Postby jpfeifer » Thu Aug 13, 2015 1:47 pm

Never put a
Code: Select all
clear all;

in a 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: Dynare Error

Postby rdoctors » Thu Aug 13, 2015 6:28 pm

thank you!!!!
rdoctors
 
Posts: 9
Joined: Tue Jul 28, 2015 8:43 pm


Return to Dynare help

Who is online

Users browsing this forum: No registered users and 8 guests

cron