QUESTION ABOUT HOW TO USE EXTERNAL FUNCTION WITH RETURNS

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.

QUESTION ABOUT HOW TO USE EXTERNAL FUNCTION WITH RETURNS

Postby zhanshuo » Sat Mar 25, 2017 4:49 pm

Hi, dear Professor,
I encountered a problem in estimation with a external function.
I have a external function as :
#x = fsolve(@(x) ratiosolve(x,Z_gOZ_m,A_gOA_m,alpha,ita_n,epsilon_y,gamma,iota),[0.8;0.8;1.5]);
in the estimation, where x is a three-variables vector.
but it seems dynare can not do with the symbol"@", it goes wrong as below:
"ERROR: misallobey.mod: line 131, col 13: character unrecognized by lexer"
So what should I do if I want to use an external function with a vector-form return?
zhanshuo
 
Posts: 44
Joined: Fri Nov 25, 2016 7:59 am

Re: QUESTION ABOUT HOW TO USE EXTERNAL FUNCTION WITH RETURNS

Postby jpfeifer » Sun Mar 26, 2017 7:21 am

Use a _steady_state-file to call the solver there.
------------
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: QUESTION ABOUT HOW TO USE EXTERNAL FUNCTION WITH RETURNS

Postby zhanshuo » Sun Mar 26, 2017 2:03 pm

THANKS LOT , Dear Prof. Pfeifer!
zhanshuo
 
Posts: 44
Joined: Fri Nov 25, 2016 7:59 am


Return to Dynare help

Who is online

Users browsing this forum: No registered users and 6 guests