Linear Function 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.

Linear Function error

Postby frankcw » Tue Jul 27, 2010 2:27 pm

Dear Dynare expert,

Could you please help me on the following code? I have tried thousand times, but it always says "linear function: parameters [1*1] structure"

Thank you!

var qq BB KK KKprime;
varexo a;
parameters alpha lamb R mu;
alpha=0.9;
lamb=0.92;
R=1.05;
mu=0.05;
model;
exp(KK)=((a+exp(qq))*exp(KK(-1))-R*exp(BB(-1)))/(exp(qq)/lamb-exp(qq(+1))/R);
exp(BB)=exp(qq(+1))*exp(KK)/R;
alpha*exp(KKprime)^(alpha-1)=R*(exp(qq)/lamb-exp(qq(+1))/R);
exp(KKprime)+exp(KK)=lamb*(exp(KKprime(-1))+exp(KK(-1)))+(exp(qq)/lamb-1)/(2*mu);
end;
initval;
a=0.5;
end;
steady;
check;
shocks;
var a;
periods 1:1;
values 0.05;
end;
simul(periods=200);

The computer returns the following:
Configuring Dynare ...
[mex] Generalized QZ.
[mex] Sylvester equation solution.
[mex] Kronecker products.
[mex] Sparse kronecker products.
[mex] Bytecode evaluation.
[mex] k-order perturbation solver.
[mex] k-order solution simulation.

Starting Dynare (version 4.1.2).
Starting preprocessing of the model file ...
Found 4 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.

Linear Function:
Parameters: [1x1 struct]
frankcw
 
Posts: 11
Joined: Tue Jul 27, 2010 2:25 pm

Re: Linear Function error

Postby AssiaEzzeroug » Wed Jul 28, 2010 7:54 am

Hi,

In the model you posted the rank condition (given by the instruction "check") is not verified,probably it may have something to do with the timing of your variable

Best
AssiaEzzeroug
 
Posts: 83
Joined: Tue Nov 24, 2009 3:48 pm

Re: Linear Function error

Postby frankcw » Thu Jul 29, 2010 2:02 pm

Thanks so much!

frankcw
frankcw
 
Posts: 11
Joined: Tue Jul 27, 2010 2:25 pm


Return to Dynare help

Who is online

Users browsing this forum: No registered users and 9 guests