model equation defining sum of large number of variables
Posted: Wed Oct 23, 2013 3:06 am
Hello,
I am using Eviews 7.2, updated and am presently trying to write a program that generates a model object. I have a simple problem/question that I have yet to find a good solution to (probably just ignorance on my part):
Let us say for example that I have N equations describing consumption by product CONSi where the number N of products is large (say 100 products). How can I program easily a total consumption equation as the sum of all of these?- ie is there some function that I can use in a model equation to write something like :
mymodel.append CONS=sum(CONSi)
and if N is large, is there a risk that the resulting equation might be "truncated" in the model code? I have seen the @rsum discussion and am not sure whether it applies to my problem (ie what happens at model solve?).
Thanks in advance for any help.
Bernardg
I am using Eviews 7.2, updated and am presently trying to write a program that generates a model object. I have a simple problem/question that I have yet to find a good solution to (probably just ignorance on my part):
Let us say for example that I have N equations describing consumption by product CONSi where the number N of products is large (say 100 products). How can I program easily a total consumption equation as the sum of all of these?- ie is there some function that I can use in a model equation to write something like :
mymodel.append CONS=sum(CONSi)
and if N is large, is there a risk that the resulting equation might be "truncated" in the model code? I have seen the @rsum discussion and am not sure whether it applies to my problem (ie what happens at model solve?).
Thanks in advance for any help.
Bernardg