number of variables to be tested

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.

number of variables to be tested

Postby frankcw » Tue Jul 10, 2012 4:48 pm

Hello,

I was wondering whether Dynare allow us to define variables like K^{i} where i = 1,2,3...N and N is a user supply integer number.

Thanks a lot!
Frank
frankcw
 
Posts: 11
Joined: Tue Jul 27, 2010 2:25 pm

Re: number of variables to be tested

Postby jpfeifer » Tue Jul 10, 2012 6:57 pm

I don't really get the question. You can define as parameter i and set it to whatever (real or natural) number you like.
------------
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: number of variables to be tested

Postby frankcw » Mon Jul 16, 2012 1:19 am

Sorry about the confusion.

I mean the number of variables are endogenous,
K^{1}, K^{2}, K^{3},...K^{N}
where N is some number that I want to try. Say I want to guess there will be 10 variables as K, so I give N = 10 and then it will generate 10 variables K ( note that each variables can have lead or lag).

Does that make sense?

Thanks a lot!

Frank
jpfeifer wrote:I don't really get the question. You can define as parameter i and set it to whatever (real or natural) number you like.
frankcw
 
Posts: 11
Joined: Tue Jul 27, 2010 2:25 pm

Re: number of variables to be tested

Postby jpfeifer » Mon Jul 16, 2012 9:55 am

If you know the number of variables before running the model, i.e. you supply N, you can use the macro-processor. See the macroprocessor.pdf in the Dynare\doc folder.
------------
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: number of variables to be tested

Postby frankcw » Tue Jul 17, 2012 12:14 am

jpfeifer wrote:If you know the number of variables before running the model, i.e. you supply N, you can use the macro-processor. See the macroprocessor.pdf in the Dynare\doc folder.


This is simply perfect!

Thanks a lot!
Frank
frankcw
 
Posts: 11
Joined: Tue Jul 27, 2010 2:25 pm


Return to Dynare help

Who is online

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