Another way of doing it is using a scalar parameter:
scalar p=1
model1.append x=(p=1)*f1+(p=2)*f2
Beware that you have to "update" the model after changing the value.
If you do not want to do this you should define the parameter as a series
generate p=1
model1.append x=(p=1)*f1+(p=2)*f2
Search found 49 matches
- Fri Nov 10, 2017 2:59 am
- Forum: Models
- Topic: Different expressions for same endogenous using scenarios
- Replies: 3
- Views: 11766
- Thu Jun 18, 2015 8:27 am
- Forum: Data Manipulation
- Topic: show gets you out of Eviews 9
- Replies: 2
- Views: 3246
Re: show gets you out of Eviews 9 (solved)
Hello again,
This does not appear with the new release....
This does not appear with the new release....
- Thu Jun 18, 2015 7:02 am
- Forum: Estimation
- Topic: Dummy Variables
- Replies: 144
- Views: 286174
Re: Dummy Variables
Hello from Paris, In my opinion, the easiest way of manipulating dummy variables is the following; Create a time trend using the date and adding a fraction to the previous value in case of quarterly data. For quarterly data over a 1980 - 2020 period: smpl 1980q1 1980q1 genr t=1980 smpl 1980q2 2020q4...
- Thu Jun 18, 2015 6:35 am
- Forum: Data Manipulation
- Topic: show gets you out of Eviews 9
- Replies: 2
- Views: 3246
show gets you out of Eviews 9
Hello from Paris, I have a problem with EViews 9. When I try to SHOW (from the command window) a non-existent variable under EViews 9, the program stops working. Does anybody face this problem? Also, I am just finishing an addition to my book on modeling describing the changes due to EViews 9. There...
- Thu Mar 14, 2013 1:59 am
- Forum: Models
- Topic: Analytical Solutions
- Replies: 4
- Views: 7757
Re: Analytical Solutions
Hello from Paris,
I am the author of the "excellent" book.
If you give me more specifics I can give you some general advice.
Best regards,
Jean Louis B.
I am the author of the "excellent" book.
If you give me more specifics I can give you some general advice.
Best regards,
Jean Louis B.
- Thu Mar 14, 2013 1:55 am
- Forum: Models
- Topic: Actuals instead of solved values
- Replies: 1
- Views: 5050
Re: Actuals instead of solved values
Hello from Paris, The Exclude command does it. However there is a big problem: the command actually drops the equation from the model (for the associated periods). If the equation is estimated, OK : the behavior is replaced by an exogenous decision. The model has one less variable and one less equat...
- Thu Mar 14, 2013 1:35 am
- Forum: Models
- Topic: Basic question on setting up EViews object
- Replies: 9
- Views: 11901
Re: Basic question on setting up EViews object
A late hello.... Eviews registers as endogenous the FIRST variable in the equation. So D, S and P should appear once, and once only, as the first element. This means this model will not work : D = f(P, x) S= f(P,y) S = D But you can : * Invert the fiirst equation to give P. * Permute one equation, g...
- Thu Jun 14, 2012 4:27 am
- Forum: Models
- Topic: Checking consistency with a steady state path
- Replies: 0
- Views: 4521
Checking consistency with a steady state path
- How to check that your assumptions and equations conform to a steady state path in simulations over the future. You just create assumptions for all endogenous and exogenous using consistent and constant growth rates, according to the dimension of the variable (like 0 for ratios, 2% for quantities,...
- Thu Jun 14, 2012 4:23 am
- Forum: Models
- Topic: Avoiding spurious"division by zero" messages
- Replies: 0
- Views: 5346
Avoiding spurious"division by zero" messages
How to avoid the "divide by zero" when computing the relative error on a null variable. In the economic domain, no variable is null by chance. The relative variation on a null variable should be considered as zero, but for Eviews any division by zero fails with an annoying and maybe mislea...
- Sat May 19, 2012 12:46 am
- Forum: Models
- Topic: Setting minimum while solving multiple equations.
- Replies: 8
- Views: 12928
Re: Setting minimum while solving multiple equations.
You might also use :
model1.append a1 = a_0(-1) - b*c
model1.append a = a1*(a1>=0)
Jean Louis Brillet.
model1.append a1 = a_0(-1) - b*c
model1.append a = a1*(a1>=0)
Jean Louis Brillet.
- Fri May 18, 2012 5:51 am
- Forum: Models
- Topic: Forecast values are very large
- Replies: 5
- Views: 9022
Re: Forecast values are very large
You can also have access to the sequence of values the variables take, using before solving the model : model solution > diagnosis > track selected variables > names of the tracked elements. The values for the tracked elements will be obtained later in View > Trace output. This is explained in parag...
- Fri Apr 13, 2012 10:52 am
- Forum: Models
- Topic: Download a new free book on modelling with EViews
- Replies: 8
- Views: 55743
Re: Structural modelling under EViews : teaching and practic
Yes this is it. A lot of graphs and tables however....
Hopefully, with the bookmarks you can locate your specific interest.
Jean Louis Brillet.
Hopefully, with the bookmarks you can locate your specific interest.
Jean Louis Brillet.
- Fri Apr 13, 2012 10:36 am
- Forum: Models
- Topic: Download a new free book on modelling with EViews
- Replies: 8
- Views: 55743
Re: Structural modelling under EViews : teaching and practic
I am not used to this, and for authors access is special.
But I asked my wife could reach it . She went to the authors list and asked for "brillet".
I hope there is another way.
Jean Louis Brillet.
But I asked my wife could reach it . She went to the authors list and asked for "brillet".
I hope there is another way.
Jean Louis Brillet.
- Fri Apr 13, 2012 9:04 am
- Forum: Models
- Topic: Download a new free book on modelling with EViews
- Replies: 8
- Views: 55743
Download a new free book on modelling with EViews
Note : A premium scribd account is now necessary for downloads. if you do not want to buy it, you can still ask me for the book at jlbrillet@yahoo.fr I am pleased to announce that I just uploaded a book called " Structural econometric modelling : Methodology and tools with applications under E...
- Tue Dec 20, 2011 8:32 pm
- Forum: Models
- Topic: deleting equations from a model
- Replies: 10
- Views: 33254
Re: deleting equations from a model
Hello, I do not think this is such a problem. having to rebuild the model each time allows you to access a full model specification and visualize its content (with explanatory comments). It gives you a better control of the process. A series of append / delete could become quite confusing very fast....