Examples of Eviews Code

Eviews is one of the popular econometrics packages being used by research community and academicians. It is a GUI (Graphical User Interface) based program compatible with Windows and Macintosh operating systems. Other popular econometrics packages include, SHAZAM, LIMDEP, SAS and GAUSS etc. Eviews is one of the most popular software for analyzing time series data. Eviews, produced by Quantitative Micro Software (QMS) from Irvine, California, comes with very useful user guide and reference manuals called, The Users Guide and The Command and Programming Reference (www.eviews.com). If you are familiar with programs like C++ and Gauss you will be able to use your programming skills to run your own customized protocols in Eviews. Let us view some examples of Eviews code here.

The recent version, Eviews 5.1 is a marriage between modern spreadsheet and Relational Database Management Systems (RDBMS) technology with conventional statistical tools. Through Eviews, you can do general statistical analyses, cross section or panel data analysis, time series data estimation and forecasting, presentation of graphics, simple data management and large-scale simulation of data.

Market researchers use Eviews in order to analyze the characteristics of actual purchases and transactions called revealed preference data. Quantitative statistical models such as the standard Linear Regression model, Binomial Logit model, Multinomial Logit model, Nested Logit model, Proportional Hazard model and Censored Regression model are used extensively for this sort of analysis using Eviews.

Examples of Eviews Code and Batch Programming

The Eviews program is command driven in both interactive and batch programming modes. But, you can construct commands through dialogue boxes and menus. Batch programming is executing a collection of commands simultaneously. Through batch programming, you can have access to a number of features, which are normally not available to the ordinary user, such as conditional branching and loops.

Running Regression Models in Eviews

Now assume that you have data on returns from the Microsoft’s stock and returns from S&P 500. Also, assume that Microsoft’s stock return is a dependent variable and S&P 500 is the explanatory variable. We call this regression model eq1. The model, which is called ‘Market Model’, can be described in Eviews as below.

eq1.ls microsoft_ret c sp500_ret

Once you run the regression, you can opt for a Chow Test for structural breaks. You can do this test in the regression window in the menu, VIEWS – STABILITY TESTS – CHOW BREAKPOINT TEST. You can use the following command to test for stability in batch programming. This command will test whether there was a structural break at observation 5000 or not.

eq1. chow 5000
 

In Eviews, besides different views, objects allow you to call upon t-statistics, residual sum of squares and Durbin-Watson statistics. Let us try to get adjusted R2 data. The R2 data is stored in a scalar called r2bar.

scalar r2bar
r2bar = eq1.@rbar2

You will be able to access the t-statistic for the individual parameters through the command

eq1.@tstats(i) 

and the standard errors for the parameter estimates through

eq1.@stderrs(i).

You can get all the available data members from the Eviews programming manual.

These examples of Eviews code will help you in getting to know the basics of Eviews programming. Once you go through the programming manual, you will be able to do complex statistical modeling with much ease.

For more examples see here.

0 thoughts on “Examples of Eviews Code

  1. How do i access ADF test stats and critical values i.e. 1% critical values in a programming environment. For instance i want to run in a for loop for a large data base of variables unit root tests and extract their ADF stats and critical values. then in an if statement want to check for variables that exhibit significant ADF stats.

  2. How do i access ADF test stats and critical values i.e. 1% critical values in a programming environment. For instance i want to run in a for loop for a large data base of variables unit root tests and extract their ADF stats and critical values. then in an if statement want to check for variables that exhibit significant ADF stats.

  3. how do i get eviews installed on my computer ? I am a young economist with no experience about the functioning and usage of this software which is the most popularly used econmetric software. I would be delighted if you can email me on my mail address.

  4. how do i get eviews installed on my computer ? I am a young economist with no experience about the functioning and usage of this software which is the most popularly used econmetric software. I would be delighted if you can email me on my mail address.

    • You have similar problem with me. I have EVIEWS but I am finding it difficult to run unit root or cointegration test in the presence of structural break. Please can you show me how one can handle the problem in EVIEWS. Lumsdaine and Papell method is another test I would like the code to use under EVIEWS. Please If you already have the answer share it with me.

      • Hi michaelnyong!

        I have the same problem as yours. I am doing my thesis at the moment and I don’t know how to run unit root and cointegration test in the presence of structural break using EVIEWS. Have you had the solutions to this issues? Please help me with my thesis!

        Thank you in advance!

  5. Hi, do you know how to program in Eviews for panel data unit roots test with cross-sectional dependency? the models like Choi (2002), Pesaran (2007). I need them urgently for my research…. thanks..

    • Rose, I am experiencing the same problem as you. How do I incorporate Pesaran and Shin test in EVIEWS. I need it urgently for my research. Please help me if you already have the answer.

  6. Hi, do you know how to program in Eviews for panel data unit roots test with cross-sectional dependency? the models like Choi (2002), Pesaran (2007). I need them urgently for my research…. thanks..

  7. You have similar problem with me. I have EVIEWS but I am finding it difficult to run unit root or cointegration test in the presence of structural break. Please can you show me how one can handle the problem in EVIEWS. Lumsdaine and Papell method is another test I would like the code to use under EVIEWS. Please If you already have the answer share it with me.

  8. Rose, I am experiencing the same problem as you. How do I incorporate Pesaran and Shin test in EVIEWS. I need it urgently for my research. Please help me if you already have the answer.

  9. You have similar problem with me. I have EVIEWS but I am finding it difficult to run unit root or cointegration test in the presence of structural break. Please can you show me how one can handle the problem in EVIEWS. Lumsdaine and Papell method is another test I would like the code to use under EVIEWS. Please If you already have the answer share it with me.

  10. Rose, I am experiencing the same problem as you. How do I incorporate Pesaran and Shin test in EVIEWS. I need it urgently for my research. Please help me if you already have the answer.

  11. Hi All,

    Please help in For loop on Eviews 5.

    After data uploading, I am trying run regression of Y on each X ( 1 to 15).

    The programme written is as follows;

    ‘run pairwise regressions between Y and each X
    for !i=1 to 15
    equation eq{!i}.ls y c x{!i}

    But it is showing an error message that, eq{!i} and x{!i} are illegal.

    Thanks,
    Regards,
    Debasish

  12. Pingback: witryna firmowa

  13. Pingback: witryna

  14. Pingback: link do strony

  15. Pingback: testosterone pills

  16. Pingback: larry sutter

  17. Pingback: zobacz

  18. Pingback: salon de massage paris

  19. Pingback: opieka nad osoba starsza

  20. Pingback: kliknij

  21. Pingback: voornemen 2014

  22. Pingback: Watch this Zenerect Review

  23. Pingback: click here

  24. Pingback: Party Rentals

  25. Pingback: strona www

  26. Pingback: meskiblog.blog4u.pl

  27. Pingback: london dating expert

  28. Pingback: witryna www

  29. Pingback: http://www.huffingtonpost.co.uk/kezia-noble/the-truth-about-pick-up-a_b_6206754.html

  30. Pingback: pity2015program.pl

  31. Pingback: https://netforceinfotech.com

Leave a reply to Appermscierge Cancel reply