EViews 8 Getting Started
EViews 8 Getting Started
Getting Started
ISBN: 978-1-880411-10-0
This software product, including program code and manual, is copyrighted, and all rights are reserved by IHS Global Inc. The distribution and sale of this product are intended for the use of the original purchaser only. Except as permitted under the United States Copyright Act of 1976, no part of this product may be reproduced or distributed in any form or by any means, or stored in a database or retrieval system, without the prior written permission of IHS Global Inc.
Disclaimer
The authors and IHS Global Inc.assume no responsibility for any errors that may appear in this manual or the EViews program. The user assumes all responsibility for the selection of the program to achieve intended results, and for the installation, use, and results obtained from the program.
Trademarks
EViews is a registered trademark of IHS Global Inc. Windows, Excel, PowerPoint, and Access are registered trademarks of Microsoft Corporation. PostScript is a trademark of Adobe Corporation. X11.2 and X12-ARIMA Version 0.2.7, and X-13ARIMA-SEATS are seasonal adjustment programs developed by the U. S. Census Bureau. Tramo/Seats is copyright by Agustin Maravall and Victor Gomez. Info-ZIP is provided by the persons listed in the infozip_license.txt file. Please refer to this file in the EViews directory for more information on Info-ZIP. Zlib was written by Jean-loup Gailly and Mark Adler. More information on zlib can be found in the zlib_license.txt file in the EViews directory. All other product names mentioned in this manual may be trademarks or registered trademarks of their respective companies.
IHS Global Inc. 4521 Campus Drive, #336 Irvine CA, 92612-2621 Telephone: (949) 856-3368 Fax: (949) 856-2044 e-mail: [email protected] web: www.eviews.com April 17, 2013
Table of Contents
GETTING STARTED . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
Installing EViews . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 Registering EViews . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 What is Registration? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 How Do I Register? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 Frequently Asked Questions about Registration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7 Updating Your Copy of EViews . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
iiTable of Contents
Getting Started
Congratulations on your purchase of EViews 8, the premier forecasting and analysis package for Windows-based computers. This guide will lead you step-by-step through the installation and registration procedure for EViews 8. (The following discussion describes the installation and registration process for single user copies of EViews and seat licenses purchased under a Volume License Program. Setting up machines to use concurrent use licenses will require a different procedure; for details, please check with your IT support department.)
Installing EViews
You should install EViews 8 by running the installation program contained on the CD-ROM or downloaded to your computers hard drive. If you are installing from the file downloaded to your computer, simple click on the EViews8Installer.exe or EViews8Installer(64-bit).exe executable program file. If installing from the EViews CD, using the Autorun.exe program, the EViews 8 CD installation screen is displayed, offering several options for how to proceed. You may close this window at any time by clicking on the Exit button, by clicking on the Close Window box in the upper right-hand corner of the window, or by double clicking on the icon to the left of EViews 8 in the title bar. You should first click on View Read Me to view any last minute changes in the installation or operating instructions. To start the installation process, click on Install EViews and follow the instructions. First, you will be prompted to read and accept the License Agreement, and to designate a directory into which you wish to install your copy of EViews. If you wish to change
2 Getting Started
the default installation directory, click on Browse and navigate to the desired directory. Click on Next to continue. Next, you will be asked to enter a name and serial number. Single user license holders should will have been provided with a 24-character serial number, either on the back of the CD-ROM case, or in separate communication. Those of you who have obtained your copy of EViews as part of a Volume License agreement should obtain a serial number from your license administrator. Enter the serial number and your name as you wish it to appear in your copy of EViews, and click on Next. Select the components you wish to install and click on Next. Lastly, you will be asked about setting up a Start Menu folder containing shortcuts to the EViews example files folder and the EViews program executable. Clicking on Next starts the actual installation of files onto your computer. You should note that as part of the installation procedure, EViews will prompt you to register files with the extensions .WF1, .PRG, .EDB, .AIPZ, and .UIPZ. If these extensions are already registered, possibly by an earlier version of EViews, you will be prompted to allow EViews 8 to override the existing registration. Registering the extensions is not required, will allow you to double-click on files with these extensions to launch EViews 8. Once the installation procedure is completed, click on Finish. If you have elected to create it, the EViews Start Menu folder will open. To launch EViews, double-click on the EViews 8 icon. Subsequently, you may launch EViews using the shortcut on your desktop or by selecting EViews from the Start Menu shortcuts, if present, by double-clicking on EViews registered file types, or by navigating to the EViews installation directory and double-clicking on the EViews icon.
Registering EViews
What is Registration?
To use EViews 8 on a specific computer, you must first register the program using the serial number obtained with your purchase or obtained from your license administrator. EViews registration is the one-time process of assigning a serial number to a specific machine, sending a unique machine ID number to IHS Global Inc., and writing some information to your Windows registry or Mac application support directory. This is a simple process that can be performed in a few seconds. The first time EViews is run on a new machine, you will be prompted to register your copy for that machine. On a Windows machine, you may choose to do so immediately, or you can put off registration to a later date, but you must register the copy within 30 days of installation. If you delay registration, you will be prompted to register the copy every time you launch EViews. After 30 days, an unregistered copy of EViews will no longer run.
Registering EViews3
The EViews single user and standalone licenses allow for a single individual to have exclusive use of copies of EViews residing on multiple machines, or for multiple users to have exclusive access to a copy of EViews residing on a single machine. For example, a single user may install and register EViews on his or her office computer, home computer and a laptop computer, provided that the use of EViews is exclusive. Note, specifically, that the license terms do not allow two users to share copies of the same license of EViews residing on two machines. To facilitate the legitimate use of EViews on multiple machines, we allow each EViews single user serial number (one beginning with 80A) or standalone serial number (one beginning with 80S) to be used in registering up to three machines. If you have exceptional circumstances which require registration on additional machines, please contact our office. Under the terms of the EViews Volume License agreement, 80C (volume) license serial numbers may not be used to register multiple machines. Each volume licensed machine running EViews must be assigned a distinct serial number. Thus, licensing an office computer, home computer and laptop computer of a single user will require three distinct Volume License serial numbers. Once registered on a given machine, EViews will run indefinitely. The copy of EViews may be uninstalled and reinstalled on a registered machine, updated, or moved to a different directory without reregistering the copy for that machine. In the special case where a machines hard disk is wiped clean, but no other changes are made to the system, you may simply reregister your copy of EViews. Note that in this circumstance, reregistration on the machine will not count as an additional registration. If an entire machine or a machines hard disk is replaced, you should contact our office to unregister your previous installation prior to reregistering.
How Do I Register?
Before starting the registration process, you should first locate your EViews serial number. You most likely will need to enter this number into EViews during the registration procedure. Next, you should launch EViews as described above.
4 Getting Started
If the copy of EViews is not registered, EViews will display a warning dialog. The dialog will inform you that EViews is not registered for this machine and, if applicable, will indicate the number of additional days the unregistered copy will continue to run. You may choose to register in one of two ways: you may use the EViews auto registration features (by clicking on Auto Registration...), or you can manually register (by clicking on Manual Registration...). Selecting either of the these two options will open a dialog prompting you for additional information. (You can choose to delay software registration by clicking on the I will register later button. If you select this option and the grace period has not expired, EViews will close the dialog and will operate in the usual fashion. In this way you can use your unregistered copy of EViews as though it were fully registered. If, however, the grace period has expired, your copy of EViews will not run until registered.)
Auto Registration
If your computer is connected to the Internet, auto registration makes registering EViews a snap. Simply click on the Auto Registration... button to display a dialog for entering your registration information. EViews will fill out as many fields in this dialog as possible. If you wish to continue with the auto registration process, make sure that the entries in the Serial # and Name fields are filled in with the relevant information. When you click on the Register now button, EViews will attempt to contact one of our registration servers and, if successful, will transmit the information contained in the dialog to the server. The server will process the information and the machine will be registered to run EViews. You should see a message indicating that registration was completed successfully, along with the number of machines that have been registered to the serial number.
Registering EViews5
If you do not wish to continue with auto registration, click on the Exit without registering button and you will be returned to the main registration screen. Note that there are some circumstances in which auto registration will fail. Obviously, auto registration will not work if the computer is not connected to the Internet. If registration fails, you should first verify that you have Internet access. Second, your computer may be behind a firewall which does not allow the required communication between your computer and our servers. Furthermore, while unlikely, it is possible that all of our registration servers are temporarily unresponsive. If you continue to have problems with auto registration, you can choose to register manually as described in the next section, or you can contact us for assistance.
Manual Registration
If auto registration fails or if you prefer not to use the automatic registration features, you may elect to register manually. From the main registration page, click on Manual Registration... to display the manual registration portion of the dialog:
You must fill in the three fields in the dialog: the 2-character serial number, your name, and a 36-character registration key you must first obtain via web browser, phone, or email. EViews will help you by filling in as many fields as possible.
6 Getting Started
The easiest method of retrieving the registration key is via web browser. If you have access to an Internet connected browser, navigate to http://www.eviews.com/register/ which will direct you to our registration servers. Follow the links to the registration page, and fill in the form. Enter your name, serial number, and the machine ID number as displayed in this registration dialog into the form. Click on the Submit the form button. You will be provided with the 36-character registration key. Once you have obtained the key, return to the registration dialog in EViews. If necessary, select Help/EViews Registration... from the EViews main menu to display the registration page. Make certain that you have entered your name and serial number exactly as provided when you obtained the registration key, and enter the key in the registration key box. Click OK to finish the registration process. Note that you should be able to copy-and-paste the registration key information from your browser into the dialog edit fields. If all of the information is entered correctly, you will be informed that your registration is complete. If you do not have access to a working web browser, you can contact our office via email, phone, or standard post to obtain the key: IHS Global Inc. Attn: Registration 4521 Campus Drive, #336 Irvine, CA 92612 Email: [email protected] Phone: 949-856-3368 Please provide a registration name, full 24-character serial number, and the machine ID number. We will then provide you with the 36-character registration key. If you receive the key via email, you should be able to copy-and-paste the key information into the dialog edit fields.
Contact Information
Once registration is completed, EViews will display an optional contact page form. You may submit this form to send name, address, phone number, and email information to IHS Global Inc. This information is for our records only and will not be redistributed to others.
How do I find my serial number and other information about my copy of EViews? Your copy of EViews contains information about your registration status, as well as the product version and build date of the program. To obtain this information, simply select Help/About EViews from the main EViews menu. I contacted you and received a key, but the key doesnt seem to work. What could be wrong? The most common registration problem results from entering a name or serial number which does not match the key. You should make certain that the name and serial number both match those provided when obtaining a key. Note that while the name is not case-sensitive, it should otherwise be entered exactly as originally provided. If you still experience problems, do not hesitate to contact our office. My copy of EViews does not appear to have the features for the edition that I purchased. Do you have to send me a new CD-ROM? No. Simply contact our office. Once we verify the edition of EViews that you have purchased, you should be able to reregister and upgrade your copy to enable the features. I've replaced my computers and no longer have available registrations. What should I do? If there are special circumstances where you need to register an additional machine, please contact our office. How do I change the name in which my copy is registered? Your copy of EViews contains the name in which it was first registered. If you wish to change the registration name, please contact our office. What if I have trouble registering? We do not anticipate that you will have problems registering your copy of EViews using one of the available methods (auto-registration, manual using our web servers, or manual using email or phone). Please feel free to contact our office if you encounter difficulties.
8 Getting Started
You may also visit the EViews website to check for updates to the EViews program and other components (documentation, sample data, and sample programs). Use your browser to go to: http://www.eviews.com and navigate to the downloads area. Downloading updates will not require re-registration of EViews on any previously registered computer. Simply download the update, run the installer, and you will have the latest shipping copy of your software.
Note that the PDF versions of the documentation may have been updated with corrections so that the material in the PDFs may differ from the printed manuals.
10 Getting Started
Performance
64-bit EViews (64-bit Version on page 14).
Data Handling
Powerful new spreadsheet editing tools (Spreadsheet Editing Tools, on page 17). Group data comparison tools (Group Data Comparison Tools, on page 19). Auto-series defined across workfile pages (Auto-Series Across Workfile Pages, on page 20). Enhanced dated data table offer enhanced customization with full command line support (Dated Data Table Support on page 20). Custom panel spreadsheet display (Custom Panel Spreadsheet Display on page 21). Support for connecting to the CEIC database (Direct Support for CEIC Databases on page 22). Write Support for Excel XLSX files (Support for Writing Excel XLSX Files on page 23). Transposed foreign data reads (Transposed Foreign Data Reads, on page 23)
Models
Improved model data editing (Improved Model Data Editing on page 28). Solution comparison tools (Comparing Solution Data on page 29). Other model commands (Other Model Commands on page 30).
Estimation
Switching regression (both exogenous and Markov) (Switching Regression on page 35). Bayesian Vector Autoregression (VARs) (Bayesian Vector Autoregression (VARs) on page 36).
Programming Support13
Robust least squares (Robust Least Squares on page 37). Breakpoint regression(Breakpoint Regression on page 38). Heckman selection models(Heckman Selection Models on page 39). Panel cointegration estimation(Panel Cointegration Estimation on page 40). User-defined optimization (User-Defined Optimization on page 41).
Miscellaneous
ARMA specification of multiple lags by range (ARMA Specification by Range on page 45). User-specified default coefficients for models specified by list (User-Specified Default Coefficients on page 46). Automatic computation of robust Wald statistic for non-intercept coefficients in models estimated with White or HAC covariances (Robust Wald F-statistics on page 47).
Programming Support
User-defined objects (User-Defined Objects on page 47). Add-ins support for version handling (Add-Ins Management on page 48) Program editor and execution enhancements (Program Editor & Execution Enhancements, on page 48). New functions for generating series (Series Generating Functions on page 50). Added matrix language tools (Matrix Language Tools on page 51). New workfile functions (Workfile Support, on page 52). Enhanced table support (Table Support, on page 53). New general information tools (General Information Tools, on page 53)
New object data members (Object Data Members, on page 54). List of new and updated global and object commands (Updated Command and Object List on page 56). List of new functions (Updated Function List on page 60).
Performance
64-bit Version
EViews is now available in both 32 and 64-bit versions. One of the advantages of using a 64-bit version of Windows is the ability to access physical memory (RAM) beyond the 4-gigabyte (GB) range. By comparison, 32-bit versions of Windows are limited to a maximum of approximately 3.2 gigabytes of memory. The 64-bit version of EViews 8 allows access to the larger amounts of physical RAM in machines running 64-bit Windows, allowing you to work with much bigger workfiles, both in terms of the number of observations per workfile page, and the number of individual objects allowed in a page. For example, 32-bit versions of EViews only allow a maximum of 15 million observations in a page (and even then we recommend much smaller workfile ranges). The 64-bit version of EViews 8 allows up to 120 million observations per page. Similarly, the 32-bit versions of EViews can exhaust available memory with more than a few hundred thousand objects in the workfile, while the 64-bit version supports workfiles with millions of objects. See Memory Allocation on page 777 of Users Guide I.
Edit field expansion lets you increase the size of edit fields in EViews so that you may more easily see and enter information. To expand an edit field, simply double click on the white space in the box, or right click and select Expand.
See Custom Edit Fields in EViews on page 10 of Users Guide I for additional discussion.
Workfile Details
EViews 8 features a new look workfile Details view. You may toggle between the ordinary workfile display and the Details view by clicking on the Details +/- button on the workfile.
Each object attribute now has a separate column in the details view, and you may sort the objects by an attribute by clicking on the column header. Columns are also draggable and resizable, allowing you to alter their position and width. If you right-click on a column header, you may also choose which columns to display. See Workfile Details Display on page 62 of Users Guide I for discussion. See wfdetails (p. 471) in the Command and Programming Reference for command support.
Workfile Compare
The new Workfile Compare view, available from the View menu on a workfile allows you to compare the differences between a workfile and another workfile stored on disk. Once you have chosen a second workfile with which to compare, EViews will display a list of all objects in the two workfiles, and let you see how those objects differ.
See Comparing Workfiles on page 88 of Users Guide I for discussion. See wfcompare (p. 465) in the Command and Programming Reference for command support.
Data Handling
EViews 8 offers a variety of new features for working with data.
Typically, the primary method of generating series values is to use a series expression. EViews will evaluate the series expression for all observations in the current sample and assign values accordingly. Note that working with subsets of data requires specifying a new sample for each subset operation. Alternately, standard editing of series values by entering numbers can be cumbersome, at best. EViews 8 changes all of this by providing tools that allow you to enter and modify individual values in a series using a powerful array expression language, and to view the effects of those changes on the series values.
Edit Mode
Standard editing now allows you to use the expression language to assign or modify one or more cells. When Edit mode is enabled by toggling the Edit +/- button, you may simply select the cells you wish to edit, then use array expressions to describe how you would like the multiple cells to be modified. See Appendix B. Enhanced Spreadsheet Editing, on page 783 of Users Guide I.
Adjust Mode
EViews 8 offers an adjust mode which may be enabled by toggling the Adjust+/- button on the spreadsheet toolbar. The adjust mode allows you to use sophisticated editing tools to make prospective changes in the series and to see the impact of those changes in an interactive fashion. These changes may be specified in natural units, so, for example, if you wish to examine the impact of a 10% increase in the values in a series over some range, you simply tell EViews that Delta % equals 10.
Since changes made in adjust mode are not permanent unless specifically made so when you close the series window, this powerful tool you to changes to a series to perform quick what if analysis without permanently changing the series. See Series Adjust on page 382 and Appendix B. Enhanced Spreadsheet Editing, on page 783 of Users Guide I. See also Series::adjust (p. 481) in the Object Reference for command tools for editing a series using these expressions.
See Group Comparison Tools on page 467 of Users Guide I. See Appendix B. Enhanced Spreadsheet Editing, on page 783 of Users Guide I. See also Series::adjust (p. 481) in the Object Reference for command tools for editing a series using these expressions.
For details, see Dated Data Table on page 469 of Users Guide I. See Group::ddtabopts (p. 277) in the Object Reference. See Group::ddrowopts (p. 275) in the Object Reference.
The first time you click the button, EViews will change the display of the series such that each row of the spreadsheet contains data for a specific date, and each column contains data for a cross-section.
Clicking the Wide +/- button a second time transposes this so cross-sections are now shown per row, and dates per column.
A third click of the button takes the view back to the original stacked form.
See CEIC on page 334 of Users Guide I for brief discussion. See dbopen (p. 322) in the Command and Programming Reference for command line support.
which saves the current workfile page in the Excel XLSX file new_wf. See pagesave (p. 402) in the Command and Programming Reference. See wfsave (p. 485) in the Command and Programming Reference.
reads the transposed data contained in the GDP data range of the Excel file Data_t.XLSX into a new workfile. The data for the series X is dropped, and the name of the new workfile page is GDP. See wfopen (p. 472) in the Command and Programming Reference. See pageload (p. 400) in the Command and Programming Reference. See import (p. 359) in the Command and Programming Reference.
You may create or edit a custom attribute by clicking on the Label view of an object, and typing the name of the custom attribute below the Description field and the value of the attribute in the field to the right.
See Adding Your Own Label Attributes on page 65 and Adding Custom Attributes in the Label View, on page 103 of Users Guide I for discussion. The setattr object command may be used to set attribute values for each object type. See, for example, Series::setattr (p. 522) in the Object Reference for series command line support. You may use the object data member @attr(arg) to obtain the string containing the value of the arg attribute, where the argument is specified as a quoted string. See @wquery (p. 680) in the Command and Programming Reference for command support for queries using custom attributes.
For discussion, see The Graph Sample on page 555 of Users Guide I.
See Drawing Lines and Arrows on page 665 of Users Guide I for discussion. See Graph::addarrow (p. 211) in the Object Reference for command details.
See User-Defined Fit Lines on page 620 of Users Guide I for discussion. See dbopen (p. 322) in the Command and Programming Reference for command line support.
Notice that Enhanced Metafile now appears as a supported output type for table objects in EViews 8:
For command line support, see Graph::save (p. 238) in the Object Reference. Table::save (p. 698) in the Object Reference. Spool::save (p. 609) in the Object Reference.
You may use OLE to paste links to EViews objects in your external document so that the underlying information is tied to the EViews workfile. Then, any time modifications are made in EViews, the changes may be pushed to the objects in your document. Alternately, you may use OLE to embed graph and table output in external documents so you may later modify the appearance of the output using EViews. See Chapter 18. Object Linking and Embedding (OLE), on page 729 of Users Guide I for additional information on using OLE with EViews.
Models
Improved Model Data Editing
EViews 8 offers improved tools for managing variables in a model. You may use the new Edit override right button menu item, available from the variables view of a model, to quickly exclude, override and edit endogenous and exogenous variables for the current scenario.
See Scenario Editing Tools, on page 653 of Users Guide II for additional information on using the edit override tools. See Model::adjust (p. 375) in the Object Reference. See Model::revert (p. 394) in the Object Reference. See Model::reinclude (p. 391) in the Object Reference.
For discussion and details, see Comparing Solution Data, on page 679 in the Users Guide II. See also the documentation for the Model::compare (p. 378) command in the Object Reference.
makegraph ............make graph object showing model series (with new features) (p. 386). makegroup ............make group out of model series and display dated data table (with new features) (p. 387). override ................specifies (or merges) override series to the active scenario (with new features) (p. 391). replace ..................replace the text specification for an endogenous variable in the model with a new specification (p. 392). replacelink ............replace a linked object with a different linked object (p. 393). replacevar .............replace all instances of a variable in the text specification of a model with a different variable (p. 393).
See ETS Exponential Smoothing, beginning on page 432 in the Users Guide I for discussion. See also Series::ets (p. 495) in the Object Reference for command support.
Census X-13
EViews 8 offers an easy-to-use front-end for working with the U.S. Census Bureaus X-13 seasonal adjustment tools. In addition to providing a wide range of new features (including ARIMA regression prior to the seasonal adjustment step), X-13 is capable of performing updated versions of X-11/X-12 or TRAMO/SEATS ARIMA seasonal adjustment.
Panel Covariances33
To perform X-13 seasonal adjustment, select Proc/Seasonal Adjustment/Census X-13... from the series window menu in a quarterly or monthly workfile. See Census X-13, beginning on page 394 in the Users Guide I for discussion. See also Series::x13 (p. 554)in the Object Reference for command support.
Panel Covariances
Panel covariances and correlations are widely used in panel data analysis. For example: Contemporaneous correlations between macroeconomic variables are often used to examine the nature of relationships between different countries (see for example, Obstfeld and Rogoff, 2001, p. 368). The contemporaneous covariances of residuals from panel regression are used in computing cross-sectional Zellner SUR-type estimators (Johnston and Dinardo, 1997, p. 318) and in tests of cross-section dependence (Pesaran, 2004). Similarly, panel covariances are used as a first step in obtaining common factors for unit root and other tests (Bai and Ng, 2004). EViews 8 now offers easy-to-use tools for computing the panel covariances and correlations for a series. Simply open the series, and select View/Panel Covariance... to display the dialog. Note that the workfile must be structured as a panel for the panel covariance menu entry to be available.
Note that you may compute measures of association between cross-sections (contemporaneous covariances) or between periods of a given cross-section. See Panel Covariances, beginning on page 825 in the Users Guide II for discussion. See also Series::pancov (p. 512) in the Object Reference for command support.
Switching Regression35
See Panel Principal Components, beginning on page 830 in the Users Guide II for discussion. See also Series::panpcomp (p. 515) in the Object Reference for command line documentation. See also Series::makepanpcomp (p. 508) in the Object Reference.
Switching Regression
EViews 8 now estimates single-equation switching regression modelslinear regression models with nonlinearities arising from unobserved discrete changes in regime, including models with independent and Markov switching. EViews also offers tools for filtering, smoothing, and forecasting from your estimated equation. Dynamics specifications are permitted through the use of lagged dependent variables as explanatory variables and through the presence of auto-correlated errors (Goldfeld and Quandt, 1973, 1976; Maddala, 1986; Hamilton, 1994; Frhwirth-Schnatter, 2006). The latter models, which are commonly referred to as Hamilton switching models have been of particular interest to applied researchers. To display the switching regression dialog, first open an equation by selecting Quick/Estimate Equation from the main menu and select SWITCHREG - Switching Regression in the Method combo, or enter the command switchreg in the command line:
For detailed discussion, see Chapter 31. Switching Regression, beginning on page 389 in the Users Guide II. See also the command line documentation for: Equation::switchreg (p. 141) in the Object Reference. Equation::makergmprobs (p. 114) in the Object Reference. Equation::maketransprobs (p. 115) in the Object Reference. Equation::rgmprobs (p. 134) in the Object Reference. Equation::transprobs (p. 146) in the Object Reference.
to provide shrinkage (restrictions on parameters to reduce the size of the parameter set) over the unrestricted least squares VAR estimates. To estimate a Bayesian VAR in EViews, click on Quick/Estimate VAR... or type var in the command window. This will bring up the VAR Specification dialog. Select Bayesian VAR as the VAR type radio button.
See Bayesian VAR on page 578 in Users Guide II for discussion. See also the command line documentation for Var::bvar (p. 748) in the Object Reference.
See Chapter 29. Robust Least Squares, on page 349 of Users Guide II for discussion. See also the command line documentation for Equation::robustls (p. 136) in the Object Reference.
Breakpoint Regression
EViews 8 offers new tools for estimating linear regression models that are subject to structural change. The regime breakpoints may be known and specified a priori, or they may be estimated using the Bai (1997) and Bai and Perron (1998), global maximizer or sequential methods, and related techniques. You may estimate pure breakpoint specifications in which all of the regressors have regime specific coefficients, or specifications in which only some coefficients vary with the regime. To estimate an equation using least squares with breakpoints, select Object/New Object.../ Equation or Quick/Estimate Equation from the main EViews menu, then select BREAKLS - Least Squares with Breakpoints in the Method drop-down menu, or simply type the keyword breakls in the command window.
See Chapter 30. Least Squares with Breakpoints, on page 369 of Users Guide II for discussion. See also Multiple Breakpoint Tests on page 174 of Users Guide II for related testing procedures. See the command line documentation for Equation::breakls (p. 47) and Equation::breakspec (p. 50) in the Object Reference.
See Heckman Selection Model on page 299 of Users Guide II for discussion. See also the command line documentation for Equation::heckit (p. 94) in the Object Reference.
User-Defined Optimization41
See Chapter 42. Panel Cointegration Estimation, beginning on page 797 of Users Guide II for discussion. See also the command line documentation for Equation::cointreg (p. 61) in the Object Reference.
User-Defined Optimization
EViews offers a wide variety of built-in estimation methods that involve optimization, including (but not limited to) those supported by the Equation, System, Sspace, and VAR objects. In addition, the EViews Logl object lets you maximize user-defined likelihood functions. but the Logl object is restricted to computations that can be specified using series expressions, with a log-likelihood objective represented as a series containing log-likelihood contributions for each observation. In contrast, the new EViews 8 optimize command provides tools that allow you to find the optimal parameters or control values of a user-defined function. Notably, optimize supports quite general functions so that the computations and the user-defined objective need not be series-based. See Chapter 10. User-Defined Optimization, beginning on page 221 of the Command and Programming Reference for discussion and examples.
See also the documentation for the command optimize (p. 379) of the Command and Programming Reference.
See Multiple Breakpoint Tests on page 174 of Users Guide II for discussion. See also Chapter 30. Least Squares with Breakpoints, on page 369 of Users Guide II for related estimation procedures.
See the command line documentation for Equation::multibreak (p. 117) in the Object Reference.
See Arellano-Bond Serial Correlation Testing on page 788 of Users Guide II for discussion. See Equation::abtest (p. 38) in the Object Reference.
See Panel Causality Testing on page 836 of Users Guide II for discussion. See Group::cause (p. 258) in the Object Reference for command line support.
The upper right-hand side of the dialog contains the Coefficient Covariance Options. To estimate the equation with HAC covariances, simply select HAC (Newey-West) in the Covariance method drop-down menu. The HAC options button which appears provides access to the standard HAC options.
Estimation using HAC covariances is discussed in the EViews 8 manual. See Coefficient Covariance Options, on page 325 of Users Guide II for discussion. See the command line documentation for Equation::glm (p. 82) in the Object Reference.
You may now specify specific coefficients to display and test in these quantile process views. See the updated command entries for: Equation::qrprocess (p. 126). Equation::qrslope (p. 128). Equation::qrsymm (p. 129).
Similarly, a moving average with non-zero coefficients on both the first and second lagged errors was specified as
equation eq2.ls y c ma(1) ma(2)
The EViews method of specifying individual terms allowed for considerable flexibility in your ARMA specification, but was burdensome in the common case where there are no restrictions on the AR or MA coefficients and you wish to include several terms. We have extended the ARMA syntax so that EViews 8 now supports specifying your AR and MA terms. The previous two equations may now be specified as:
equation eq1.ls y c ar(1 to 4)
Note that this syntax is similar to that supported for specifying lags of variables.
If the specified coefficient does not exist it will be created; if it is too small, it will be resized. If it exists in the workfile but is of another object type, the estimation procedure will error. The coef= option may be added to the options entries for all relevant single equation estimators:
coef=arg (default=c) Coefficient name to use in estimation.
User-Defined Objects47
Programming Support
Programming in EViews 8 has been improved in a number of important ways.
User-Defined Objects
User-defined objects are an exciting new feature in EViews 8. A EViews user object allows you to create your own object types inside of EViews. A user object may be as simple as a storage container for other EViews objects, or it may be a sophisticated new estimation object defined by multiple EViews programs, with views containing post-estimation tests and results, and procedures producing output from the estimation results. Once defined, a user object is almost indistinguishable from a built-in EViews object. Defining a user object is quite easysimply specify the types of data and objects stored inside your object, and if desired, define a set of views and procedures that be accessed via commands, menus and dialogs. Even if you do not go to the trouble of creating your own objects, you may take advantage of this powerful tool by using user objects downloaded from the IHS EViews website or obtained from third-parties.
See Chapter 9. User Objects, beginning on page 195 of Command and Programming Reference for extensive discussion. See the command line documentation for adduo (p. 272) in the Command and Programming Reference.
Add-Ins Management
EViews 8 offers an improved environment for managing and working with Add-ins. Among other things, EViews now allows Add-ins to have a version number, and the Manage Addins dialog offers users Add-in the ability to update to the latest version of the Add-in simply by clicking on a button:
See Chapter 8. Add-ins, beginning on page 169 of Command and Programming Reference for extensive discussion. See the command line documentation for addin (p. 270) in the Command and Programming Reference.
Line numbers
EViews programs now allow you to view line numbers in the program. To enable line numbers in a program press the LineNum +/- button on the program tool bar (you may have to widen the program window to see the toggle):
Note that line numbering can only be enabled if word wrap is switched off (you can use the Wrap +/- button to turn it off). You may right click anywhere in your program and select Go To Line... to jump directly to a specific line number.
Selective Run
You may choose to only run part of your program by highlight the lines you wish to run, then right-clicking and selecting Run Selected. EViews will then execute only the selected line of code as a new program.
See Running Part of a Program on page 111 of Command and Programming Reference for extensive discussion.
Event Functions
These functions return information about each observations relationship with a specified date, or date range. Function
@before(arg1)
Description
Creates a dummy variable equal to 1 if the observation is before the date given by arg1. arg1 should be enclosed in quotes. Creates a dummy variable equal to 1 if the observation is after or on the date given by arg1. arg1 should be enclosed in quotes. Creates a dummy variable equal to 1 if the observation lies between the dates given by the date pair contained in arg1, and 0 otherwise. arg1 should be given in quotes.
@after(arg1)
@during(arg1)
Proportion of a one-off event that lies in each observation. Proportion of an annual event that lies in each observation.
See Event Functions, on page 553 in the Command and Programming Reference for discussion.
Indicator Functions
These functions produce indicators for whether each observation satisfies a specific condition: Function
@inlist(series, list)
Description
Creates a dummy variable equal to 1 for observations where series is equal to one of the values specified in list, and 0 otherwise. list should be a quoted, space delimited list of values. This function works on both numerical and alpha series. Creates a dummy variable equal to 1 for observations where series is greater than or equal to val1 and less than or equal to val2.
See Indicator Functions, on page 555 in the Command and Programming Reference for discussion.
Description
First non-missing value in arg1 for each arg2 group. Last non-missing value in arg1 for each arg2 group.
See By-Group Statistics, on page 520 in the Command and Programming Reference for discussion of related by-group statistics.
such as the transpose, the diagonal elements, or sub-elements of the matrix. See the new Matrix Data Members on page 55. There is a new set of vector procs, Vector::setglobalc (p. 792) and Vector::setglobalc (p. 792) in the Command and Programming Reference that allow you to copy the values currently in the workfile C vector into or out of the vector. You may now specify your own column and row headings for matrix objects (rather than the default C1, C2..., or R1, R2...). The Matrix::setcollabels (p. 361) and Matrix::setrowlabels (p. 364), procedures allow you to change the headings via command.
Matrix Functions
EViews 8 includes a number of new matrix algebra and matrix utility functions, including functions for horizontal and vertical concatenation, quadratic form calculation, and a new easy function to fill a matrix object with values (all in the Command and Programming Reference): @fill .................... create and fill a vector with a list of values (p. 623). @hcat .................. horizontally concatenate two matrix objects (p. 626). @qform................ compute a quadratic form of a symmetric matrix and a matrix or vector (p. 636). @uniquevals ........ returns a vector or svector containing the list of unique values in the object (series, vector, alpha, matrix) (p. 645). @vcat .................. vertically concatenate two matrix objects (p. 646).
Workfile Support
A number of new options are available in the workfile creation, opening and saving commands. wfcreate (p. 467) (in the Command and Programming Reference) has new alignment options that allow you to specify the starting day for weekly or biweekly workfiles, or the starting month for quarterly, semi-annual or annual workfiles. wfopen (p. 472), pageload (p. 400) and import (p. 359) (in the Command and Programming Reference) have a new option (byrow) for opening transposed data in raw format files (ascii, Excel, etc...). There is also a new option for specifying the data type of each series being opened/imported (types=). The wfsave (p. 485) and pagesave (p. 402) commands (in the Command and Programming Reference) have a new option (mode=) to allow you to modify an existing Excel file (without wiping existing data in the file), and one to save the file in transposed format (byrow).
The wfclose (p. 464) command (in the Command and Programming Reference) now allows you optionally to optionally provide the name of a workfile if you do not wish to close the active workfile.
Workfile Functions
In addition, you may use the following new function to obtain information about the open workfile. Function
@pagelist
Name
list of workfile pages
Description
returns a string containing a space delimited list of the page names in the current workfile.
Table Support
Program support for tables and table creation have been enhanced in EViews 8. You may use the Table::setprefix (p. 712) and Table::setsuffix (p. 713) (in the Object Reference) table procs prefixes and/or suffixes to selected cells in tables. Tables may now be saved as Enhanced Metafiles or PDF files. See Table::save (p. 698) in the Object Reference). Tables and selected table views may be copy-and-pasted as OLE links into documents in other applications such as Microsoft Word, Excel, or PowerPoint. These OLE links allow you to double click on the linked table in the other application to open EViews for additional customization, and to automatically update the table link when the table or table view changes in your EViews workfile. See Object Linking and Embedding (OLE) on page 27. Dated data table creation tools have been expanded and full programming language support is now offered for the customization. See Dated Data Table Support on page 20.
General Functions
In addition, you may use the following new function to obtain information about your EViews application environment (all in the Command and Programming Reference): @env ................... returns a string containing the value of a Windows environment (p. 656). @folderexist ......... check for a folders existence on disk (p. 658). @wquery ............. returns a string list of object attributes for all objects in the database that satisfy the query (p. 680). @wread ............... returns a string containing the contents of the specified text file on disk. (p. 681).
String Values
@coeflabels...........coefficient labels used in regression output table.
Matrix values
@col(i) .................The i-th column of the matrix. i may be a vector of integers, in which case multiple columns are returned (as a matrix). @diag ...................vector containing the diagonal elements of the matrix. @dropcol(i) ..........Returns the matrix with the i-th column removed. i may be a vector of integers, in which case multiple columns are removed. @droprow(i) .........Returns the matrix with the i-th row removed. i may be a vector of integers, in which case multiple rows are removed. @row(j) ................The j-th row of the matrix. j may be a vector of integers, in which case multiple rows are returned (as a matrix). @sub(i,j) ..............The (i,j)-th element of the matrix. Both i and j may be vectors of integers, in which case multiple elements are returned (as a matrix). @t ........................transpose of the matrix.
Vector values
@dropcol(i) ..........Returns the rowvector with the i-th row removed. i may be a vector of integers, in which case multiple rows are removed.
Vector values
@droprow(i) ........ Returns the vector with the i-th row removed. i may be a vector of integers, in which case multiple rows are removed.
All Objects
Object Procs olepush .................push updates to OLE linked objects in open applications. setattr ...................set the value of an object attribute.
Equations
Equation Methods breakls .................. least squares with breakpoints and breakpoint determination. cointreg.................cointegrating regression using FMOLS, CCR, or DOLS, or panel FMOLS or DOLS (with new support for panel estimation). glm .......................Generalized Linear Models (GLM) (with new HAC covariance support). heckit ...................estimate a selection equation using the Heckman ML or 2-step method. robustls .................robust regression (M-estimation, S-estimation and MM-estimation). switchreg ..............exogenous and Markov switching regression. Equation Views abtest ....................test for serial correlation in a panel GMM equation using the Arellano-Bond test. breakspec ..............display the breakpoint specification for an equation estimated by least squares with breakpoints. multibreak ............perform multiple breakpoint testing for an equation specified by list and estimated by least squares. qrprocess ..............display table or graph of quantile process estimates (with new features). qrslope ..................test of equality of slope coefficients across multiple quantile regression estimates (with new features). qrsymm ................test of coefficients using symmetric quantiles (with new features). rgmprobs ..............display the regime probabilities in a switching regression equation. transprobs .............display the state transition probabilities in a switching regression equation. Equation Procs makergmprobs ......save the regime probabilities in a switching regression equation. maketransprobs .....save the state transition probabilities in a switching regression equation.
Graphs
Graph Procs addarrow ..............draw a line or arrow on a graph.
options ................. change the option settings of the graph (with new features). save ..................... save graph to a graphics file (with new PDF save). setfont .................. set the font for the text in a graph.
Groups
Group Views cause.................... pairwise Granger causality tests (with new support for testing in panel workfiles). sheet .................... spreadsheet view of the series in the group (with new features). Group Procs ddrowopts ............ set the individual row options for the dated data table view of the series in a group. ddtabopts ............. set the table default options for the dated data table view of the series in a group.
Matrices
Matrix Procs setcollabels ........... set the column headers in a matrix object spreadsheet. setrowlabels ......... set the row headers in a matrix object spreadsheet.
Models
Model Views compare ............... produce a table showing the differences between scenarios for the specified series. Model Procs adjust ................... prepare a variable for editing in the current scenario and/or update its values using an array expression. drop ..................... drop equations for one or more endogenous variables in the model. droplink ............... drop linked objects from the model. exclude................. specifies (or merges) excluded endogenous variables in the active scenario (new features). makegraph ........... make graph object showing model series (with new features). makegroup ........... make group out of model series and display dated data table (with new features). override ................ specifies (or merges) override series to the active scenario (with new features). reinclude .............. removes one or more variables from the excluded variable list. replace ................. replace the text specification for an endogenous variable in the model with a new specification.
replacelink ............replace a linked object with a different linked object. replacevar .............replace all instances of a variable in the text specification of a model with a different variable. revert ....................reverts one or more overridden variables in the active model scenario back to their baseline values.
Series
Series Views pancov ..................compute covariances, correlations, and other measures of association for a panel series. panpcomp .............perform principal components analysis on a panel series. sheet .....................spreadsheet view of the series (with new features). Series Procs adjust....................modify or fill in the values in a series. ets ........................perform Error-Trend-Season (ETS) estimation and exponential smoothing. makepanpcomp .....save the scores from a principal components analysis of a panel series. x13 .......................seasonally adjust series using the Census X-13ARIMA-SEATS method.
Spools
Spool Procs save ......................save spool object to disk as a CSV, tab-delimited ASCII text, RTF, or PDF file (with new PDF save).
Tables
Table Procs save ......................save table object to disk as a CSV, tab-delimited ASCII text, RTF, HTML, or PDF file (with new PDF save). setprefix ................set the cell prefix string for the specified table cells. setsuffix ................set the cell suffix string for the specified table cells.
User Objects
User Object Declaration userobj..................declare an empty, unregistered user object. User Object Views display ..................display table, graph, or spool output in the user object window. label .....................display or change the label view of a user object.
User Object Procs add ...................... add a data or object member to the user object. clear ..................... remove all members from the user object. displayname ......... attach a display name to the user object. drop ..................... drop a data or object member from the user object. extract .................. display or copy a data member from the user object. label ..................... display or change the label view of a user object.
VAR
Var Methods bvar ..................... estimate a Bayesian VAR specification.
Vector
Vector Procs getglobalc ............. copy the contents of the workfile C coefficient vector into the vector object. setglobalc ............. copy the contents of the vector object into the workfile C coefficient vector.
Program Support
@env ................... returns a string containing the value of a Windows environment. @folderexist ......... check for a folders existence on disk. @wquery ............. returns a string list of object attributes for all objects in the database that satisfy the query. @wread ............... returns a string containing the contents of the specified text file on disk.
Other
See Object Data Members on page 54.
Workfile Compatibility
With few exceptions, EViews 8 workfiles are backward compatible with EViews 7. Note that the following objects are new or have been modified in Version 8: Equation objects estimated with methods that employ new features (breakpoint estimation, robust estimation, Heckman selection, panel cointegration, switching regression, GLM with HAC robust standard errors, Bayesian VARs.) If you have saved workfiles containing any of the above objects and open them in EViews 7 or earlier, EViews will delete the incompatible object and notify you that one or more objects were not read. If you then save the workfile, you will lose the objects. We recommend that you make a copy of any workfiles that contain these objects if you would like to use these workfiles in earlier versions of EViews.