## Search found 55 matches

Thu Aug 22, 2013 6:23 am
Forum: Programming
Topic: Max/Min in Matrix
Replies: 1
Views: 1054

### Max/Min in Matrix

Hi, I try to get the max and min of each column of a matrix, using the cmax and cmin command. However, if the matrix contains NA values these commands don't work, Therefore I created a table including the stats of the matrix, and then create a vector, which is filled by the min and max values given ...
Tue Jun 04, 2013 8:35 am
Forum: Programming
Topic: @Varlist of equation
Replies: 3
Views: 1775

### Re: @Varlist of equation

And what is the reason, why the @varlist command produces a wrong list?
Tue Jun 04, 2013 5:58 am
Forum: Programming
Topic: @Varlist of equation
Replies: 3
Views: 1775

### @Varlist of equation

We try to identify the elements of each equation however, if the equation is specified with the following: eq_Y.ls dlog(Y)=c(33)+c(34)*dlog(Y(-1)) eq_Y.@varlist the results that we get is DLOG(Y) Y(-1) Y(-2) Which is not our equation!! When we define the equation by the following eq_Y.ls dlog(Y) c d...
Thu May 23, 2013 12:20 am
Forum: Programming
Topic: Equation access in model
Replies: 3
Views: 1378

### Equation access in model

Using EViews 8, assume: %model="m" model {%model} {%model}.merge eq_v1 {%model}.merge eq_v2 {%model}.append x=y+c string test={%model}.@endoglist 'Lists all Endogeneous variables While test lists all variables (v1, v2, x), I'm only interested in a string including v1 and v2. Is there a way...
Mon Aug 06, 2012 8:00 am
Forum: Models
Topic: sample condition
Replies: 0
Views: 2070

### sample condition

I'm working with a forecasting horizon from 2012-2020 and a model that includes along other equation a text equation for a series X. Forecasts for 2012 to 2013 (short-run) are "given" and implemented in the model by the model control command. Hence, the text equation "only applies&quo...
Tue Jul 10, 2012 8:26 am
Forum: Programming
Topic: Mean in model
Replies: 1
Views: 1096

### Re: Mean in model

After a while I find an easy solution:
for each variable %G

Code: Select all

`   genr mean_{%g}=@MOVAV({%g},4)      {%model}.append mean_{%g}=@MOVAV(310,4)'and then add the mean values:{%model}.append AGG=AA*mean_AB(-4)/mean_AC(-4)+AB*mean_AB(-4)/mean_AC(-4)`
Fri May 04, 2012 1:37 am
Forum: Programming
Topic: Mean in model
Replies: 1
Views: 1096

### Mean in model

Hi there, I need to implement a formula that take quarterly data (e.g. AA) and is multiplied with the mean of the previous YEAR (NOT the last 4 values!!), which seems difficult to implement, in particular if I would add the formula to a model. In case that I take only the previous value (instead of ...
Wed May 02, 2012 6:47 am
Forum: Data Manipulation
Topic: Rounding function
Replies: 4
Views: 4307

### Re: Rounding function

Hi, is there already a solution to round a value to certain decimal places.
In my case, I have to generate a third series from two series that are "rounded and reduced" to 2 decimal places.
Any suggestions?
Tue Dec 06, 2011 9:03 am
Forum: Models
Topic: model control
Replies: 5
Views: 5338

### Re: model control

I just have seen that there is an add-in available called mcontrol, with allows to define the groups of elements. So I built goups group var_a cs_a i_a group var cs i group vvar vcs vi macro.mcontrol var_a var vvar However, it gives an error that the Hessian matrix is singular. Any suggestion how to...
Tue Dec 06, 2011 2:37 am
Forum: Models
Topic: model control
Replies: 5
Views: 5338

### model control

Using EViews6 I'm trying to solve a model, with given values for the short-run period. However, if I only control for one variable it works, but if I add more control variables I just applies to the last control variable. I tried to simply my problem to the following example, just run it and you see...
Fri Nov 04, 2011 3:23 am
Forum: Data Manipulation
Topic: name, label and description of series
Replies: 9
Views: 6239

### Re: name, label and description of series

Hi, finally I find a way that works. I import the information in alpha series (name_c, name_l, ...), where the n series are given from position 1 to n. for !ser=1 to n %code=name_c(!ser) 'includes the data abreviation %short=name_k(!ser) %long=name_l(!ser) %unit=name_u(!ser) %source=name_s(!ser) {%c...
Tue Oct 11, 2011 2:32 am
Forum: Data Manipulation
Topic: name, label and description of series
Replies: 9
Views: 6239

### Re: name, label and description of series

Hi, taking up this issue again, I have noticed that your Add-inn getmacrodata.prg gets all the detailed information (description, units, source,...) from the FRED database and all information is perfectly assigned to the corresponing fields in the Eviews series object. I was wondering whether there ...
Wed Sep 14, 2011 5:19 am
Forum: Bug Reports
Topic: model.control error in version 7.2
Replies: 1
Views: 1323

### model.control error in version 7.2

Hi, I'm currently using EViews 7.2 (update Sept 7 2011 ), but would like implement code written in EViews 6. In EViews 6 the following code works perfectly: smpl 2011.3 2012.4 model3.control gdp_a gdp vgdp smpl 2011.3 2018.4 model3.solve However, in EViews 7.2. I got an error message "unable to...
Mon Jun 06, 2011 9:35 am
Forum: Data Manipulation
Topic: name, label and description of series
Replies: 9
Views: 6239

### name, label and description of series

In a Excel file I have a bunch of information well prepared for my time series, however, how can I import all this information to EViews (7.2)? Assume a column were you have the shortname, longname (for charts and tables), description (e.g. Source,etc.) and then the values e.g. in Excel it looks lik...
Mon Nov 22, 2010 10:17 am
Forum: Programming
Topic: distinguish odd /even numbers
Replies: 1
Views: 1146

### distinguish odd /even numbers

Using EViews 7, I would like to use different commands according to whether the sample size is odd or even;
is there a specific command that looks to this issue or you have already a nice solution ;o)

sample 2000q1 2010q1+!step
!length=@obssmpl
if !length=EVEN then ...
else (if ODD) ..
endif