EViews 13 Getting Started
EViews 13 Getting Started
This software product, including program code and manual, is copyrighted, and all rights are
reserved by S&P 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 S&P 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 pro-
gram to achieve intended results, and for the installation, use, and results obtained from the pro-
gram.
Trademarks
EViews® is a registered trademark of S&P Global Inc. Windows, Excel, PowerPoint, and Access
are registered trademarks of Microsoft Corporation. PostScript is a trademark of Adobe Corpora-
tion. Bloomberg is a trademark of Bloomberg Finance L.P. All other product names mentioned in
this manual may be trademarks or registered trademarks of their respective companies.
Notices, terms and conditions pertaining to third party software are located at http://
www.eviews.com/thirdparty and incorporated by reference herein.
GETTING STARTED . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1
Installing EViews . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
Installing the Program . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
Registering EViews . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
What is Registration? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
How Do I Register? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
Frequently Asked Questions about Registration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
Updating Your Copy of EViews . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
Where to Go For Help . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
Online Help . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
The Help System . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
The EViews Manuals (PDF Files) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
Tutorials . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
The EViews Forum . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
Congratulations on your purchase of EViews 13, 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.
(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
Installing the Program
To begin installation, simply click on the “EViews13Installer(64-bit).exe” executable program
file.
• 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
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. You should have been pro-
vided with a 24-character serial number as part of your purchase. 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”, “.WF2”, “.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 13 to override the existing registration. Registering the extensions is
not required, but doing so will allow you to double-click on files with these extensions to
launch EViews.
2—Getting Started
Once the installation procedure is completed, click on Finish. If you have elected to create
an EViews shortcut, the EViews Start Menu folder will open. To launch EViews, double-click
the EViews 12 icon. Subsequently, you may launch EViews using the shortcut on your desk-
top 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 dou-
ble-clicking on the EViews icon.
Registering EViews
What is Registration?
To use EViews 13 on a specific computer, you must first register the program using a serial
number. EViews registration is the one-time process of assigning a serial number to a spe-
cific machine, sending a unique machine ID number to S&P 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.
Under the terms of the EViews Volume License agreement, “13C” (volume) license serial
numbers may not be used to register multiple machines. Each volume licensed machine run-
ning 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.
The copy of EViews may be uninstalled and reinstalled on a registered machine, updated, or
moved to a different directory without re-registering the copy for that machine. In the spe-
cial case where a machine’s hard disk is wiped clean, but no other changes are made to the
system, you may simply re-register 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 machine’s hard disk is replaced, you should contact our office to
unregister your previous installation prior to re-registering.
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 proce-
dure.
Registering EViews::—3
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 prompt-
ing you for additional information.
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.
4—Getting Started
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.
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 Registra-
tion... to display the manual registration portion of the dialog:
You must fill in the three fields in the dialog: the 24-character serial number, your name, and
a 36-character registration key you must first obtain via online, by phone, or by email.
EViews will help you by filling in as many fields as possible.
played 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, enter it into the registration dialog. If necessary, select
Help/EViews Registration... from the EViews main menu to display the registration page.
Make certain that the listed name, serial number, and registration key in the registration dia-
log matches exactly (this includes spaces and case) that of the registration confirmation
page. 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 or
phone to obtain the key:
S&P Global Inc.
Attn: Registration
3030 Old Ranch Parkway, Suite 260
Seal Beach, CA 90740
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 S&P
Global Inc. This information is for our records only and will not be redistributed to others.
• I contacted you and received a key, but the key doesn’t 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, please contact our office.
• My copy of EViews does not appear to have the features for the edition that I pur-
chased. Do I need to purchase a new copy?
No. Simply contact our office. Once we verify the edition of EViews that you have pur-
chased, you should be able to re-register and upgrade your copy to enable the fea-
tures.
• 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 encoun-
ter difficulties.
Alternately, you may manually check for updates from within EViews at any time by select-
ing Check now... under the EViews Auto-Update from Web menu item, or by selecting
EViews Update from the Help menu.
Where to Go For Help::—7
You may also visit the EViews website to check for updates to the EViews program and other
components (documentation, sample data, and sample programs). 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.
Online Help
You may also access the EViews documentation online at
https://help.eviews.com
Tutorials
To get you started, we have provided a set of PowerPoint tutorials illustrating the basics of
EViews. These tutorials are a great way to see EViews in action.
http://www.eviews.com/Learning/index.html
To supplement the information provided in the manuals and the help system, we encourage
you to visit the EViews Online Forum, where you can find answers to common questions
about installing, using, and getting the most out of EViews. The EViews Forum is an ideal
place to ask questions of and share information with other EViews users.
Note that in some cases, entries will appear in more than one section as they might other-
wise be overlooked by those who may find them to be of interest.
Data Handling
Data Handling
• Daily data seasonal adjustment (“Daily Data Seasonal Adjustment” on page 19).
• New and improved Excel file writing engine (“New Excel File Writing Engine” on
page 21).
• Enhanced holiday family of functions to return the proportion of an annual event
associated with each observation (“Holiday Functions” on page 21).
• Updated X-13 Engine (featuring HTML output) (“Updated X-13 Engine” on page 25).
Matrix Language
• Improved data access to matrix object data (“Simplified Matrix Data Access,” on
page 37)
10—New Features in EViews 13
• Improved data import and export from matrix objects (“New Matrix Import/Export
Engine,” on page 40).
• Expanded support for setting and using row and column labeling (“Matrix Row and
Column Labels,” on page 43).
Command Language
• List of new and updated global commands (“Updated Command List” on page 100).
• List of new and updated object commands and data members (“Updated Object List”
on page 100).
• List of new and updated functions (“Updated Function List” on page 109).
EViews 13 offers an alternative user interface mode that employs panes and tabs in places of
multiple windows. To maximize the use of space on smaller screens, the pane and tab mode
offers a more organized way of displaying and grouping windows. The built-in organization
properties of this interface may be ideally suited to smaller display environments.
12—New Features in EViews 13
In the pane and tab UI mode, different types of windows will appear in docked or undocked
panes inside and outside the EViews frame:
• Workfiles, programs, and database windows appear as panes that can be docked in
different locations, grouped together, toggled to automatically hide or display, and
float outside the EViews frame
• Object windows will appear as tabbed windows using all available client area inside
the EViews frame. Multiple object windows appear as different tabs, and these tabs
can be divided and stacked separately to view multiple objects simultaneously.
When you open multiple workfiles or multiple programs, previously opened windows will
appear as tabs in the corresponding docks. You may bring focus to a specific window by
clicking on the corresponding tab.
When you open multiple object windows, the previously opened windows will appear as
tabs in the object pane. You may bring focus to an object by clicking on the down arrow at
the upper right of the object dock and selecting the desired object, or by selecting Window
from the main EViews menu and clicking on the object name in the list of opened objects.
General EViews Interface—13
To further maximize screen real estate, you may place the workfile/database and the pro-
gram panes in drawers. Placing a pane in a drawer temporarily hides the pane while retain-
ing quick, on-demand access to the pane:
• Click on the pin icon at the top of a docked pane to hide it in a drawer on the side of
the window. The pane window will close and be replaced by a drawer label on the
side of the window.
• Hovering the cursor over the drawer label will open the drawer and display the pane
window. Clicking away from the pane will close the drawer.
• Click again on the pin to remove the pane from the drawer and open the docked pane
window.
In the example screenshot, a workfile window and a database window are grouped together
into a single pane (docked to the left) and the program window is floating outside the
EViews frame on the right. Three object windows are also open in the center, with the X and
RESID object windows grouped together and the X2 window stacked below them.
To enable or disable the pane and tab mode, click on General Options/Environment/
Appearance and select the Use panes & tabs checkbox to enable the new mode:
14—New Features in EViews 13
Dark mode
You may use the Enable dark mode checkbox to control the background in program and
text windows.
General EViews Interface—15
For each primary file, layout settings are stored in a hidden text file using the original name,
but with the extension “.evsettings”. If you share both the primary file and the layout file
with others, the original layout will be restored upon opening the primary file.
Note that when restoring window positions, complicated layouts such as panes grouped
together may not appear exactly as before, especially if the layout is dependent on the exis-
tence of other panes.
Program Debugging
EViews offers tools for debugging to help you locate the source of problems. These tools
allow you to run programs until they hit breakpoints on specific lines and then examine the
state of your workfile at those breakpoints.
EViews will start program execution and open the debugging pane. There are three tabs in
the pane: Breakpoints, Watch, and Callstack.
Stopping at a Breakpoint
When the program reaches an active breakpoint, the execution will pause at the red dot,
now highlighted in yellow:
At this point you can look at the Breakpoints, Callstack, or Watch windows for more infor-
mation.
• Breakpoints shows all defined breakpoints. Toggling the checkbox next to a break-
point name inactivates or reactivates it.
• Callstack displays the current line of the active files and subroutines of the program.
Additionally, you may open EViews objects such as series or equations to examine their cur-
rent states.
General EViews Interface—17
Button Bar
Resume continues program execution until the next breakpoint is reached. Step executes
the current line. Run continues program execution to completion, ignoring any remaining
breakpoints. Stop cancels program execution.
A new Program Dependencies window will appear showing the type, filename, and path of
all the external dependencies detected during the run.
18—New Features in EViews 13
The above image shows the dependence on the external program files “xy.prg,” “wz.prg,”
and “z22.prg,” the workfiles “tq.wf1” and “untitled.wf1,” and the database “dbtest.edb,”
along with the line numbers producing these dependencies.
The code in a notebook cell is passed to a programming language specific “kernel” on the
backend that does the code execution. EViews, starting with version 13, can be used as a
Jupyter kernel. Users can run an EViews program and display its results from within a note-
book.
Data Handling—19
A new EViews-specific folder will be created in the Jupyter kernels folder location, usually
found at “%AppData%/Roaming/jupyter/kernels”.
Next, run the notebook server. Depending on your installation, this can be done from a com-
mand prompt or the start menu in Windows or from Anaconda Navigator. Select the EViews
kernel by choosing it from the “New” drop-down menu in the upper-right corner of the
notebook dashboard. This will open the notebook editor, the interface where code and other
input is entered and evaluated. Type EViews commands into the cells and run them with
shift-enter (to run the current cell and select the following cell) or ctrl-enter (to run the cur-
rent cell). More information on using Jupyter can be found in the Jupyter documentation
(https://jupyter-notebook.readthedocs.io/en/stable/notebook.html).
Data Handling
Daily Data Seasonal Adjustment
EViews 13 adds the ability to perform seasonal adjustment on daily data, by featuring an
extended implementation of the seasonal adjustment of daily time series algorithm of Ollech
(2021). Although the original Ollech (2021) algorithm is designed for 7-day week daily data,
EViews’ implementation handles both 7 and 5-day week daily data.
20—New Features in EViews 13
To perform DSA seasonal adjustment in EViews, open the series and select Proc/Seasonal
Adjustment/DSA Daily Seasonal Adjustment… EViews will then open a tree-structured
DSA dialog to allow you to set the options for the DSA procedure:
The branches of the tree, on the left, allow you to specify the Basic Options, the ARIMA
model, and the three STL Seasonal Adjustment components. Click on the node name in the
left to select the node.
Data Handling—21
• For additional discussion of the new DSA procedure, see “Daily Seasonal Adjust-
ment,” on page 528 in User’s Guide I.
• See Series::dsa (p. 710) for command documentation in the Object Reference.
EViews 13 introduces a new Excel 2007 writing engine that no longer requires installation of
the Excel application. Notably, with Excel 2007 writing,
• exporting EViews data to Excel is now much more efficient, especially when perform-
ing a large number of writes,
• you may now write data into an existing Excel file (via command), an operation that
was not permitted in earlier versions,
• you may now choose between using EViews cell formatting, retaining the pre-existing
(in Excel) formats, or removing all formats (colors, font, number formatting, column
widths and row heights) for the written range.
• For the most part, using the new engine will be transparent to users for previous ver-
sions (apart from the performance improvements). Simply perform your Excel 2007
writes in the usual fashion using the option “mode=update”. The command,
tab1.save(t=excelxml, cellfmt=EViews, mode=update) mytable
range=Country!b5
will add the contents of table TAB1 to the preexisting “MyTable.XLSX” Excel file. The data
will be written to the ‘Country’ sheet at cell B5. All preexisting cell formatting in the Excel
file will be overwritten using the cell colors and fonts in TAB1.
• See pagesave (p. 483) and wfsave (p. 583) in the Command and Programming Ref-
erence for updated command documentation.
• See also the object specific save and export commands, Table::save (p. 992),
Matrix::export (p. 517), Vector::export (p. 1123), Sym::export (p. 912),
Rowvector::export (p. 648), and Coef::export (p. 25), in the Object Reference,
for updated documentation.
Holiday Functions
The @holiday and @holidayset functions allow you to analyze and account for different
behavior on holiday days, around the world. These functions may be used to create series
that indicate the proportion of an annual event covered by each observation.
22—New Features in EViews 13
The @holiday function returns the proportion or identifier of an annual event covered by
the observation, for each observation in the workfile.
where h is the holiday event specification, b is a basis specification, and flag is a calculation
scaling flag.
The @holidayset function returns the proportion or identifier of multiple annual events
covered by the observation, for each observation in the workfile.
@holiday is similar to @holidayset, but allows for the specification of holidays using a
range pair of dates, while disallowing multiple holiday event specifications.
where h is one or more holiday event specifications, b is a basis specification, and flag is a
calculation scaling flag.
• See “Holiday Functions,” on page 669 of the Command and Programming Reference
for complete syntax and discussion.
@holiday Examples
The command
series jan1 = @holiday("Jan1")
generates a series containing a non-zero value only for those observations associated with
January 1st. For a daily or lower frequency workfile, only a single observation will cover
January 1st each year and that observation will have a value of 1. For a higher frequency
workfile, multiple observations will cover January 1st and thus have a value less than one.
For example, in an intra-day workfile with a frequency of six hours, each of the four obser-
vations for January 1st every year will have the value 0.25.
series jan1early = @holiday("Jan1", "Mon-Sun,9AM-2PM")
Data Handling—23
generates a series that is non-zero only for those observations associated with January 1st
and between the hours of 9AM (inclusive) and 3PM (exclusive). For an intra-day workfile
with a frequency of six hours, the two observations for January 1st that begin at 6AM and
noon each year will have the value 0.5. Note that the end time of the basis specification, e.g.
2PM, is considered to extend to the last moment of the specified time, thus 2PM is inter-
preted as 2:59:59.999PM (3PM rather than 2PM).
series mondays = @holiday("Nov1Mon(1)")
generates a series that is non-zero only for those observations that fall on the day after the
first Monday in November, i.e. the Tuesday that is US federal Election Day.
series frenchlabor = @holiday("Labour.fr~")
Generates a series that is non-zero only for those observations associated with French Labor
Day (May 1st). Should that day fall on a Saturday, the observation(s) for the preceding Fri-
day will be non-zero instead, or if that day falls on a Sunday, the observation(s) for the fol-
lowing Monday will be non-zero. For example, in a daily workfile covering years 2020
through 2024, the observations for Friday May 1 2020, Friday April 30 2021, Monday May 2
2022, Monday May 1 2023, and Wednesday May 1 2024 would have the value 1.
series canadaday = @holiday("Canada!")
generates a series that is non-zero only for those observations associated with Canada Day
(July 1st). Should that day fall on a Saturday or a Sunday, the observation(s) for the follow-
ing Monday will be non-zero instead. For example, in a daily workfile covering years 2022
through 2024, the observations for Friday July 1 2022, Monday July 3 2023, and Monday
July 1 2024 would have the value 1.
series lunar = @holiday("LNY~(-3)")
generates a series that is non-zero only for those observations occurring three days before
the Lunar New Year, adjusted for weekends. For example, in a daily workfile covering year
2020, while the nominal date for the holiday is Saturday January 25, the observation for
Tuesday January 21 would have the value 1 as a consequence of the weekend modifier and
offset.
series newyears1 = @holiday("NewYears[1,2,0]")
generates a series that is non-zero only for those observations associated with New Year's
Day (January 1st) and the preceding day (December 31st). In the common case where those
two days will be covered by different observations, the observation for December 31st will
have the value 0.33 and the observation for January 1st will have the value 0.67 given the
relative weights specified.
series newyears2 = @holiday("NewYears[1,2,0]","denorm")
generates a series that is non-zero only for those observations associated with New Year's
Day (January 1st) and the preceding day (December 31st). With the use of the “denorm”
24—New Features in EViews 13
option, the observation for December 31st will have the value 1 and the observation for Jan-
uary 1st will have the value 2.
series ukbank = @holiday("Bank.uk!")
generates a series that is non-zero only for those observations associated with United King-
dom bank holidays included in the “bank.uk” named group. The weekend modifier “!” is
applied to each individual holiday in the group.
series postvets = @holiday("Veterans.us(7) Thanksgiving.us")
generates a series that is non-zero only for those observations between a week after US Vet-
erans Day and US Thanksgiving. This range normally covers between five to eleven days,
depending on the year. For example, in 2020 this range covers nine days (November 18
through November 26), thus in daily workfile the observations associated with those days
would have the value 0.111.
@holidayset Examples
The command
series jan1set = @holidayset("Jan1")
generates a series containing a non-zero value only for those observations associated with
January 1st. For a daily or lower frequency workfile, only a single observation will cover
January 1st each year and that observation will have a value of 1. For a higher frequency
workfile, multiple observations will cover January 1st and thus have a value less than one.
For example, in an intra-day workfile with a frequency of six hours, each of the four obser-
vations for January 1st every year will have the value 0.25. Since only a single holiday is
specified, this function behaves identically to @holiday.
series vetsset = @holidayset("Veterans.us(7) Thanksgiving.us")
generates a series that is non-zero only for those observations a week after US Veterans Day
and on US Thanksgiving. For example, in 2020 the two holidays occur on November 18 and
November 26, thus in daily workfile the observations associated with those days would each
have the value 0.5. Note that unlike the @holiday function, the two holidays included are
distinct and do not specify a range.
series easterset = @holidayset("Easter Unity.de[ramp(3)] Oct31~")
generates a series that is non-zero only for those observations associated with Easter, the
five days on and around German Unity Day, and Halloween, adjusted for weekends. For
example, in a daily workfile covering year 2020, the observation for Sunday April 12 will
have the value 0.333, the observations for Thursday October 1 through Monday October 5
will have the values 0.037, 0.074, 0.111, 0.074, and 0.037, respectively, and finally the obser-
vation for Friday October 30 will have the value 0.333.
Data Handling—25
The updated X-13 engine allows you to save your X-13 output directly to HTML. Click on the
Output node in the tree, and make sure the Display html checkbox is selected:
Note that the Census Bureau has tested this version of X-13ARIMA-SEATS on Windows 10
and indicates that it may work on previous Windows versions.
SDMX Databases
As part of EViews support for SDMX Databases, EViews 13 now offers access to Australian
Bureau of Statistics (ABS) SDMX, Deutsche Bundesbank (DB) SDMX, and Insee (L’Institut
national de la statistique et des études économiques) SDMX data.
Please note that an internet connection is required to obtain SDMX online data. For more
information on the ABS, DB, or Insee data, see:
http://api.data.abs.gov.au
http://api.statistiken.bundesbank.de
http://www.insee.fr/en/information/2868055
EViews offers a custom browser for navigation to and retrieval of available data from SDMX
databases. To start, open a database window by selecting File/Open Database… from the
26—New Features in EViews 13
main EViews menus, then select Eurostat SDMX Database, ECB SDMX Database, UN
SDMX Database, IMF SDMX Database, OECD SDMX Database, ABS SDMX Database,
Deutsche Bundesbank SDMX Database, or Insee SDMX Database from the Database/File
type dropdown menu. A dialog similar to the one below will be displayed:
Click OK to open the standard EViews database window. Click on Browse or Browse-
Append to open a custom database.
The dialog allows data to be selected from within datasets; alternatively, the browser inter-
face is a way to search through the datasets by typing a keyword in the Filter textbox:
Data Handling—27
Select a dataset and click Next to display a dialog for viewing and selecting series:
28—New Features in EViews 13
The dialog contains a table with all of the series matching the search. On the left is an inter-
face with a list of dropdown boxes containing additional search filter criteria. Click a box or
boxes to select one or more options. If more filter criteria are selected the results on the right
will be updated to match the new selections. On the bottom right is a graph preview of the
series data selected.
Once the selection process is finished, drag-and-drop or click the Export to workfile button
to export the series directly into a new or existing workfile.
• See “Foreign Format Databases” on page 362 in User’s Guide I.
• See also dbopen (p. 371) in the Command and Programming Reference.
Please note that an internet connection is required to obtain Trading Economics online data.
For more information on Trading Economics data subscriptions, please see:
https://tradingeconomics.com/analytics/features.aspx
Additionally, direct access to Trading Economics online data is only offered in the EViews
Enterprise Edition.
EViews offers a custom interface to Trading Economics data. To open the database, select
File/Open Database… from the main EViews menu and then select Trading Economics
from the Database/File type dropdown menu:
Click on Browse in the toolbar to open the custom Trading Economics window:
The dialog interface displays five tabs, or categories, of data: Indicators, Market Curren-
cies, Market Stocks, Market Commodities, and Market Bonds.
Indicators
Under the Indicators tab, choose between picking a country/territory, an indicator category,
or a search:
30—New Features in EViews 13
For Pick Country/Territory, select a country from the drop-down box to see historical and
forecast indicators:
For Pick Indicator Category, select a category from the drop-down box to see historical and
forecast indicators:
Data Handling—31
For Search, select Term/Keyword or Symbol and enter an expression in the text box:
The user interface provides a way to filter through the results regardless of the method cho-
sen. After picking the country Mexico, for example, the dialog displays a table with the indi-
cator results:
32—New Features in EViews 13
Click the drop-down box next to each column header to show a set of filter checkboxes.
Select one or more of these to display selected values or select All to show all values. Click
Reset Filter to clear all filters.
Markets
If any of the market tabs (Market Currencies, Market Stocks, Market Commodities, Mar-
ket Bonds) are selected, the dialog will display a table with all the stock market symbol
Data Handling—33
results you have permission to see based on your subscription. For example, the below dia-
log shows the Market Stocks tab:
You may elect to search for a Term/Keyword or a Symbol. Once the series of interest is
found and selected, drag-and-drop or click the Export to workfile button to export the
series directly into a new or existing workfile.
For more information click the Browse Trading Economics Stocks link at the bottom of the
dialog to open the Trading Economics webpage.
• See “Foreign Format Databases” on page 362 in User’s Guide I.
• See also dbopen (p. 371) in the Command and Programming Reference.
EViews offers a custom interface to World Health Organization data. To open the database,
select File/Open Database… from the main EViews menu and select World Health
Organization from the Database/File type dropdown menu:
34—New Features in EViews 13
Click on the Indicators folder and navigate through the set of nested folders:
The full path of the active folder is shown in the header. Click on any folder within the path
to return to it. For example, clicking on By country will move up a single level to show the
country choices. Similarly, clicking on “..” in the window listing will move up a single level.
Once the series of interest is selected, drag or copy it into a workfile. For more information,
click the Open Browser link at the bottom of the dialog to open the WHO website.
• See “Foreign Format Databases” on page 362 in User’s Guide I.
• See also dbopen (p. 371) in the Command and Programming Reference.
Data Handling—37
Briefly:
• @fill(n1, n2, n3, ...) – return a numeric vector with the specified values.
• @range(n1, n2) – return a numeric vector with the sequential integer values from n1
to n2.
• @seq(s, d, n) – return a numeric vector with the arithmetic sequence of n elements
beginning with s and incrementing by d.
• @grid(n1, n2, n3) – return a numeric vector containing a grid of n3 values from n1
to n2.
• @sfill("str1", "str2", "str3", ...) – return a svector using the specified double-quote
enclosed strings.
Note that the first three functions create vector objects, while the latter creates an svector
(string vector) object.
These functions are straightforward in intention. While @fill and @seq will work with
arbitrary numeric values, we are interested here in their use in generating vectors of integer
values.
vector x1 = @fill(1, 2, 4, 5, 7)
creates the vector with elements {1.0, 1.2, 1.4, 1.6, 1.8, 2.0}, and
svector sx1 = @sfill("apple", "pear", "orange")
38—New Features in EViews 13
Some of these member functions were available for selected objects in earlier versions and
some are new in EViews 13. All of the functions have enhanced scope in EViews 13 along
with new functionality for referencing data using matrix row and column labels.
• obj.@row(arg) – returns matrix object containing row(s) of obj associated with arg
• obj.@sub(arg1, arg2) – returns matrix object containing row(s) and col(s) of obj
associated with arg1 and arg2, respectively
• obj.@sub(arg) – returns sym object containing row(s) and col(s) of obj associated
with arg, respectively
• obj.@dropboth(arg) – returns sym object containing row(s) and col(s) of obj not
associated with arg, respectively
where
• arg, arg1, arg2 are integers, scalar objects, vectors, strings, or svectors
For cases where args are numeric (integers, scalars, vectors), the arg values act as row or
column indices. Focusing on column functions, for example,
vector v1 = x.@col(3)
matrix m1 = x.@col(cid)
where X is a matrix and CID is a vector of column indices, and the two lines return the vec-
tor V1 and matrix M1 containing the 3rd column of X, and the columns of X referenced in
Data Handling—39
CID, respectively. Note that the elements of CID must be integers from 1 to the number of
columns of X.
For cases where args are strings (string literal, string object, svector), the arg values are
examined to find matches in the corresponding row or column labels (“Matrix Row and
Column Labels,” on page 43). For example, the commands
vector v2 = x.@col("apple")
matrix m2 = x.@col(scid)
where SCID is a svector of strings, produce the vector V2 and matrix M2 containing the 3rd
column of X, and the columns of X with labels that match the elements of SCID, respec-
tively. Note that all of the elements of SCID must be strings that match the column names
previously assigned to X.
You may mix the types of arg1 and arg2 in data member functions that take two arguments
so that, for example,
matrix m3 = x.@sub(3, "apple")
returns M3 containing the element of X in row 3 and column with label “apple”.
• V2D, the matrix X with the column with label “apple” dropped
• M2D, the matrix X with the columns with labels in SCID dropped
• M3D, the matrix with the row 5 dropped and the column labeled “apple” dropped
• V2D, the contents of SYMORIG after dropping columns and rows referenced by CID
Consider, for example, the extraction of multiple columns from the matrix X using the @col
data member function:
vector xid = @fill(1, 3, 5, 9)
matrix xsub = x.@col(xid)
Since the args in the member data extraction functions may themselves be expressions, we
may combine the two lines into a single expression:
matrix xsub1 = x.@col(@fill(1, 3, 5, 9))
Similarly, extracting or dropping the 7 through 9th columns of X may be done using
matrix xsub2 = x.@col(@range(7, 9))
matrix xsub3 = x.@dropcol(@range(7, 9))
which create XSUB4 containing rows 3 to 6 and columns with labels matching “apple” and
“orange” of X, and XSUB5 containing X after dropping row 4 and the columns with match-
ing labels.
To read data into a matrix object open the matrix and select Proc/Import Data... EViews
will open the standard file dialog prompting you to select a file:
Double-click to select the file, or highlight the file and click on Open. EViews will open a
data import wizard:
Proceed through the steps of the wizard by filling out the desired values and clicking on
Next, and click on Finish when ready to import the data. EViews will read the data into the
matrix object, resizing the object to match the source size, if possible.
42—New Features in EViews 13
Note that some matrix objects offer some challenges in data import. If you have a vector
import from multi-column data,
• See Matrix::import (p. 521) in the Object Reference for representative command
documentation. Equivalent functions are available for vector, sym, rowvector, and
coef objects.
To write the contents of the matrix, select Proc/Export Data... from the matrix menu:
You may change the Data order to transpose the data prior to write, provide options related
to the target file type, such as Advanced Excel Options for XLSX,
Data Handling—43
which permit writing into an specific sheet and cell of a new or existing file, with or without
formatting.
• See Matrix::export (p. 517) in the Object Reference for representative command
documentation. Equivalent functions are available for vector, sym, rowvector, and
coef objects.
By default, there are no row and column labels in matrix objects. When spreadsheets show
the contents of the matrix, the rows are labeled as “R1”, “R2”, etc., and the columns are
labeled as “C1”, “C2”, “C3”, etc.
To define row and column labels, you may open a matrix object display the spreadsheet
view:
By default, there are no labels defined, but you may use the matrix procs setrowlabels
and setcollabels to assign new values:
For example,
mat01.setcollabels "First" "Alternate"
By default, these labels will be used in the spreadsheet display of the matrix:
The Row/Collabels +/– toggles on and off the display of the labels.
EViews 13 adds the ability to extract data from the matrices using the row and column
labels. For example, with the matrix object, we have matrix data members,
@col(arg)............. Returns the columns defined by arg.
@dropcol(arg)...... Returns the matrix with the columns defined by arg removed
@droprow(arg) .... Returns the matrix with rows defined by arg removed.
@dropsub(arg1, arg2)Returns the matrix with the rows defined by arg1 and columns
defined by arg2 removed.
@row(arg) ........... Returns the rows defined by arg.
@sub(arg1, arg2).. Returns the matrix with rows defined by arg1 and columns with
defined by arg2.
that all take args that may be integers, vectors of integers, string, or svectors of strings.
Importantly, integer values will correspond to row and column indices. while string values
will correspond to previously defined row and column labels.
will create the vector VEC1 containing the column labeled with “Alternate” in MATRIX01.
This command is equivalent to
vector vec1 = mat01.@col(2)
Graphs and Tables—45
When plotting multiple data for series in prior versions of EViews, the graph for data from
one series could obscure the data of another. For example, the following area graph shows
time series graphs for three series in a group object (ALLIED, DUPONT, and EXXON):
In this graph, data for ALLIED is drawn first, followed by the data for DUPONT, and then by
the data for EXXON. Notice that the areas for the later drawn series obscuring the areas for
the earlier. Note in particular, that the values of EXXON for observations hide the corre-
sponding values of DUPONT and ALLIED, particularly for observations from 9 to 16.
EViews 13 allows you to adjust the opacity of individual graph elements to improve the visi-
bility of others. To set the opacity for one or more elements, double click on the graph to dis-
play the graph options, or select on the Options button on the button bar, then select the
Graph Elements node.
46—New Features in EViews 13
Opacity levels may be set for individual Lines and Fill Areas by clicking on an entry in the
right hand side of the graph to select a graph element and then entering a number from 0 to
100 in the Opacity % edit field:
You may set levels for more than one element simultaneously by SHIFT or CTRL clicking to
select multiple elements, and then applying the desired setting.
Here is the same graph after setting the Opacity % of all three of the fill elements to “50”:
Graphs and Tables—47
Note the additional visible detail in the values of the ALLIED and DUPONT series for obser-
vations 9 to 16. In particular, the values of ALLIED, the first drawn series were virtually
invisible in the earlier graph, but now show an obvious sawtooth pattern.
Similarly, turning down the opacity in a dense scatterplot can show additional detail:
Judicious use of transparency settings makes possible the production of graphs that show
data in ways that were not previously possible.
To set opacity levels by command use the Graph::setelem (p. 373) (in the Object Refer-
ence) command to select an element and add the lineopacity (for lines) and fillopac-
ity (for fills) keywords to set the desired opacity values.
Setting the level to 0.0 (0%) will make the object completely transparent while 1.0 (100%)
will make the object completely opaque.
For example,
gr1.setelem(2) lineopacity(.5)
In our example, the second line in the graph was set to be 0.5 (50%) opaque.
Graphs and Tables—49
Recall that in EViews 12 and earlier, EViews offered option to use data values to label each
of the observations in a graph.
While often quite useful, this option had limitation. For one, labeling observations with data
values was an all or nothing proposition; data values were either displayed for all observa-
tions or for none of the observations. Further, customization of the format of the data labels
was limited to specifying a size and font of the data label, and showing or not showing an
open or closed circle symbol alongside the label.
EViews 13 enhances the ability to label observations to provide you with greater control
over your data labeling. You may now:
• Label all observations, no observations, the first observation, or the last observation.
• Specify the content of the data label by using the data value, the observation, the
name of the series, or arbitrary text.
• Modify the font, font size and position of the data label.
Data labeling is controlled in the Graph Options dialog. Click on the Options button or dou-
ble-click on the graph to display the dialog then select Graph Elements and Lines & Sym-
bols and select one or more the elements on the right-hand side of the dialog The Symbol/
Data label settings will be displayed when you choose Symbols or Lines & Symbols to dis-
50—New Features in EViews 13
play. To show data labels, select one of the three Data label entries in the drop-down control
(open circle and data label, closed circle and data label, data label):
Here, we have selected the Data label with a closed circle symbol.
By default, when you choose a data label setting, EViews will display labels for all observa-
tions.
EViews 13 introduces the ability to customize the data label display. Click on the large
Options button under the Data Label entry in the middle of the dialog to display the Label
Options dialog:
Graphs and Tables—51
The second tab of the dialog specifies font family, size, and color settings, as well as special
text effects like underlining and strikethrough.
Below, we use the Last observation setting to label the last data point using the Y-value to
form a custom data string “% growth (actual)”, by entering
@ylabel()% growth
(actual)
in the edit field. Note that the carriage return in the edit field is used to create a multi-line
label.
52—New Features in EViews 13
Importantly, if an observation were to be added to end of the graph, the data label would
automatic change to reflect the new value as well as move to proper location above new
observation.
Similarly, you may use custom data labels in place of a legend. In this example, the legend
was disabled and we activate the custom data label for the last observation, using a
@legend()
Note that a custom data label differs from a custom text label. Data labels are attached to an
observation in the graph, while custom text labels may be placed anywhere in the graph.
While custom text labels may be placed so that they appear related to specific data values, it
takes a bit of work to tie them to the observation data values. In contrast, a custom data
label is designed to be linked to the observations so it may easy to attach label text to the
first, last, or all of the observations.
• See Graph::datalabel (p. 344) in the Object Reference for command documenta-
tion.
Note that the ability to attach labels to the shapes in a geomap is one of the most important
tools for customizing the display of area data. In the simplest example, we may display the
name of a geographic region in each area of a geomap display. For example, we may display
the county names in our geomap display of the county areas in the State of California, USA.
Graphs and Tables—53
Here, the county names are one of several attributes of the geomap shapefile data, which
pairs each shape are with one or more pieces information. Each shape in the file might have
information on “Name”, “Population”, “Income”, “Population % change”, etc.
In EViews 12, you could display a geomap with a single label taken from a single attribute,
as in the example above. So while you could instruct EViews to use the “Name” attribute to
display county name, or the “Population” attribute to show population, you could not dis-
play labels showing both county name and population in each shape.
EViews 13 removes this single attribute restriction, allowing you to use multiple attributes to
construct an area label. Furthermore, you may add custom text to your label, and apply cus-
tom formatting including, font family and size, and multi-line display.
54—New Features in EViews 13
Here we use the attribute “NAME” and the value of the workfile series POP_FEMALE to cre-
ate a custom, multi-line label for each shape:
Should the default position of a label not be ideal, it may be adjusted manually. Simply click
and drag a label to its desired location:
Graphs and Tables—55
Note the improved labeling of the offshore areas in Santa Barbara, Ventura, and Los Angeles
counties.
• See Chapter 13. “Geomaps,” on page 681 in User’s Guide I for updated documenta-
tion.
• Geomap::setjust (p. 318) in the Object Reference to set the display justification for
multi-line area labels.
EViews 12 offers a number of predefined colormaps for common settings, such as the Posi-
tive-negative colormap which negative values will be displayed as red and positive values
will be displayed as black. In addition to EViews 12 pre-specified presets, EViews 13
includes a new preset which allows users to identify the high, low, and median observa-
tions.
56—New Features in EViews 13
To apply this preset to a displayed series spreadsheet, click on Properties then select the
Text Color or Fill Color tab as desired:
Choose High-Low-Median in the Type dropdown, and choose the colors appropriately.
Click on OK to display the spreadsheet with the colormap applied:
For geomaps you will click on Properties, then select the Color tab and choose High-Low-
Median in the Type dropdown,
Graphs and Tables—57
Applying a high-low-median colormap is done using the existing setfillcolor proc and
the “t=hilo” option:
geomap01.setfillcolor(t=hilo) mapser(POP_TOTAL) min(-352258.35)
max(7408557.35) highclr(@RGB(255,168,168))
lowclr(@RGB(255,255,128)) medianclr(@RGB(255,190,96))
• See Geomap::setfillcolor (p. 311) in the Object Reference for command docu-
mentation.
Table Search
EViews 13 introduces the ability to search cells within a table, both interactively and in pro-
grams.
To locate a particular value or string in a table interactively, first ensure that the table win-
dow is active, then press Ctrl+F or select Edit/Find from the main menu to display the Find
dialog.
When searching, you have the option to match the whole word, match case, and the specify
the search direction. After making any selections, press the Find Next button to locate a
matching cell.
If a match is found, the first located corresponding cell within the table will be selected:
Graphs and Tables—59
Subsequent Find Next searches will select the next matching cell. If the end of the table is
reached, EViews will resume the search from the beginning or end of the table, depending
on the search direction.
Perhaps more importantly, EViews 13 provides a new table data member @find, that pro-
vides a string containing cell identifiers which satisfy a boolean condition. The condition
may be expressed as a mathematical (using numerically interpreted values of the cell con-
tents) or string comparisons, using cell references.
where expression can be a mathematical or string expression, returns a string containing the
cell identifiers which meet the bool expression.
For example,
string s = tab1.@find("[b1:c15]>0.3")
returns the list of cells between cell B1 and C15 which have a value greater than 0.3.
string s = tab1.@find("[a1:e67]== ""1949q4""")
returns the list of cells between A1 and E67 which match the string “1949q4”, ignoring case
(note: string comparisons in @find ignore case).
string s = tab1.@find("[@all]==0.5")
returns the list of cells in the table that are equal to 0.5.
string s = tab1.@find("@instr([@all],""in"")")
returns the list of cells in the table that contain the substring ‘in’.
string s = tab1.@find("[b3:c5]<[d5]")
returns the list of cells between B3 and C5 that have a value less than the value of cell D5
60—New Features in EViews 13
returns list of cells in the table that start with the string “cp”.
There are cases when you may wish to perform operations on cells in a table, but only under
certain conditions. Suppose, for example, that you have a table with annual data on each
row and you want to identify each row where there is a decrease in value in column 3 when
compared to the value for the previous row (year). The goal is to apply custom text or cell
formatting to these rows.
Fortunately, EViews allows you to identify the desired cells using a conditional target range
specification comprised of a target_range and a boolean_expression. You may specify the con-
ditional target cells using the syntax:
target_range if boolean_expression
where target_range gives the range of potential cells of interest, “if” is a keyword, and bool-
ean_expression provides indicators for which of the target_range cells to use.
will only set the fill color to red for the target cell range, if the decreasing value condition
holds.
• See “Conditional Table Cells” on page 68 in the Command and Programming Refer-
ence for detailed discussion.
Similarly, the table @find data member allows you to obtain a string list containing the cells
in a table range that satisfy a condition. The syntax for @find requires a find_expression:
table_name.@find(find_expression)
where find_expression simultaneously specifies the range of cells to consider and the boolean
expression for whether each cell should be used.
returns the list of cells between cell B1 and C15 which have a value greater than 0.3.
string s = tab1.@find("@instr([@all],""in"")")
returns the list of cells in the table that contain the substring ‘in’.
Graphs and Tables—61
string s = tab1.@find("[b3:c5]<[d5]")
returns the list of cells between B3 and C5 that have a value less than the value of cell D5
• See “Table Search” on page 58.
There are times when it is useful to lock one or more rows or columns in a table so that
those rows and columns are always in view. Depending on the contents of the table, the first
few rows or columns in your table may contain identifying information about the data cells
within the table. When searching for a specific cell or set of cells, fixing the display of these
identifiers makes this task much easier. This is especially useful for tables containing a large
number of columns or rows.
This situation often occurs, for example, when working with tables where the first row con-
tains column names and the first column contains observation IDs. In the case when the
table is scrolled both vertically and horizontally such that the 20th column and the 100th row
of a table is in view it may be helpful to see the column names and observation IDs to have
provide context to the contents of the cell.
Fixing columns and rows in a table can be done by pressing the Proc button in a table object
button bar. Then,
• To fix only the first row, select Fix Row-Column/Fix 1 Row. If more than 1 row is to
be fixed, select a cell in the first row after the last desired fixed row and then from
the Proc menu select Fix Row-Column/Fix # Rows. For example, to fix the first 3
rows of table, select a cell in the fourth row and then select Fix Row-Column/Fix 3
Rows.
• The process for fixing columns is the same as fixing rows with the obvious exception
of selecting
• Fix Row-Column/Fix #Columns - Similarly, after navigating through the proc menu,
the columns proceeding the current selected cell will be fixed. Note the fixed col-
umns and rows will be denoted in the table by a black cell border.
In the image below which fixes the first row and column of the table, you can see the date
column (column A) and the series names (row 1) are in view despite the table being scrolled
vertically 123 rows and 13 columns where row 124 is the first row, and column J is the first
column displayed.
62—New Features in EViews 13
The fixed columns are denoted by a black cell border that extends from the top to bottom of
the table and the fixed rows are separated by a similar black border that extends from the
left to right of the table.
With fixed headers and rows, we can readily identify the selected cell as being the value for
LC for 1979q3.
In this second example, the fixed first row and column of the table makes it easy to identify
the LINCOMEP values for Turkey from 1960 to 1978 despite the fact that the displayed val-
ues are for the 288th row and column F of the table.
Graphs and Tables—63
To unfix any fixed rows or columns, simply press the Proc button and either select Fix Row-
Column/Remove Fixed Columns or Remove Fixed Rows. Note: the cell selection is ignored
when unfixing rows or columns.
Note that fixed rows and columns are saved with the table when the workfile is saved to
disk.
• See Table::fixcol (p. 986), Table::fixrow (p. 987), and Table::fixrowcol
(p. 987) in the Object Reference.
Fixing the beginning set of columns in table is accomplished via the table name followed by
the fixcol proc and the number of columns to be fixed. This procedure force the number
of specified columns to always be in view regardless of the horizontal scroll position. Once
fixed, a black cell border will separate the fixed and unfixed rows and columns.
Similarly, to fix the beginning set of rows in the table use the fixrow keyword followed by
the number of rows to be fixed.
will fix the first two columns and the first row of the table.
Alternately you may fix both the row and column using the single command
64—New Features in EViews 13
tab1.fixrowcol 1 2
or
tab1.fixrowcol 0 0
ARDL Estimation
EViews 13 offers improvements to existing tools for analyzing data using Autoregressive Dis-
tributed Lag Models (ARDL), featuring estimation of Nonlinear ARDL (NARDL) models
which allow for more complex dynamics, with explanatory variables having differing effects
for positive and negative deviations from base values.
The classical ARDL framework assumes that the long-run cointegrating relationship is a
symmetric linear combination of regressors. While this is a natural starting assumption, it
does not match the behavioral finance and economics literature approach to modeling non-
linearity and asymmetry (Kahneman, Tversky, and Shiller, 1979). In response, Shin (2014)
proposes a nonlinear ARDL (NARDL) framework in which short-run and long-run nonlin-
earities are modeled as positive and negative partial sum decompositions of the explanatory
variables.
From the main EViews menu, click on Quick/Estimate Equation… or type the command
equation in the command line to open the equation dialog. Then select the ARDL -
Autoregressive Distributed Lag Models (including NARDL) from the Method dropdown
to display the ARDL dialog:
Econometrics and Statistics—65
In the Linear dynamic specification, you should a enter a list of variables consisting of the
dependent variable followed by any symmetric ARDL distributed lag regressors. At a mini-
mum, the edit field must contain the dependent variable.
Asymmetric distributed lag regressors may be listed under Asymmetric dynamic specifica-
tions. In particular, the Long-run and short-run edit field may be used to specify regressors
which are asymmetric in both the long-run and short-run. Regressors which are asymmetric
only in the long-run may be specified in the Long-run only edit field, while those which are
asymmetric exclusively in the short-run are specified in the Short-run only edit field.
66—New Features in EViews 13
*Note: p-values and any subsequent tests do not account for model selection.
• For full discussion, see Chapter 29. “Linear and Nonlinear ARDL,” on page 321, in
User’s Guide II.
• See Equation::ardl (p. 61) in the Object Reference and ardl (p. 322) in the Com-
mand and Programming Reference for updated command documentation.
In addition to the support for estimating nonlinear ARDL specifications, EViews 13 offers a
number of new ARDL diagnostics. These diagnostics are designed to help you examine the
dynamic behavior of your variables, the long-run properties of your specification, and the
appropriateness of your model.
• See the summary of new EViews 13 ARDL features in “Diagnostics in ARDL” on
page 77.
ing the intercepts, short-run coefficients, and cointegrating terms, to differ across cross-sec-
tions.
To estimate a Panel ARDL/PMG model in EViews, open the equation dialog by selecting
Quick/Estimate Equation…, or by selecting Object/New Object…/Equation and selecting
PMG/ARDL from the Method dropdown menu. EViews 13 will then display the new ARDL
estimation dialog:
While much of the dialog is familiar from earlier versions of EViews, notably different in the
EViews 13 PMG dialog are additional entries in the Trend specification corresponding to
restricted intercept and trend specifications, and new edit fields for specifying Asymmetric
dynamic specifications. The Trend specification upgrades allow for a wider range of long
and short-term dynamics, while the latter fields support asymmetric variables in the PMG
estimator:
68—New Features in EViews 13
• See “Pooled Mean Group ARDL Estimation” on page 1221 and “Pooled Mean Group
Example” on page 1238 in User’s Guide II for discussion of EViews 13 panel PMG
estimation.
• See Equation::ardl (p. 61) in the Object Reference and ardl (p. 322) in the Com-
mand and Programming Reference for updated command documentation.
• See also the discussion of non-panel ARDL estimation in “Background” on page 321
and “Estimating ARDL and NARDL in EViews” on page 326 in User’s Guide II for
background detail.
EViews 13 also offers a number of new PMG diagnostics and tests to help you examine the
dynamic behavior of your variables, the long-run properties of your specification, and the
appropriateness of your model.
• See the summary of new EViews 13 PMG post-estimation tools in “Diagnostics in
Panel ARDL/PMG” on page 86.
Difference-in-Difference Estimation
Difference-in-difference (DiD) estimation is a popular method of causal inference that allows
estimation of the average impact of a treatment on individuals.
EViews 13 offers tools for estimation of the DiD model using the common two-way fixed-
effects (TWFE) method, as well as post-estimation diagnostics of the TWFE model, such as
those by Goodman-Bacon (2021), Callaway and Sant’Anna (2021), and Borusyak, Jaravel,
and Spiess (2021).
To estimate a DiD model in EViews, bring up the equation dialog by clicking on Object/New
Object…/Equation or Quick/Estimate Equation… from the main menu bar in your panel
workfile. EViews will detect the presence of your panel structure and in place of the stan-
dard equation dialog will open the panel equation estimation dialog. Select DiD – Differ-
ence-in-Difference in the Method dropdown display the DiD dialog:
Econometrics and Statistics—69
In the Equation specification edit field you should enter the dependent variable followed by
any exogenous regressors apart from the treatment variable.
The treatment variable should be entered in the Treatment Variable edit field. The treat-
ment series should be a binary variable indicating whether the individual has been treated
(i.e., is 1 if the observation in a treatment group which is post-treatment date for that group,
and 0 otherwise).
The Options tab contains a single Coefficient name edit field that allows you to change the
default coefficient vector.
One important limitation of the existing tools for VEC estimation was the inability of users to
add arbitrary exogenous variables to the cointegrating relation since the set of admissible
restricted regressors was limited to the endogenous variables and potentially an intercept,
and possibly a linear trend term.
EViews 13 removes this limitation on restricted regressors and improves on the prior treat-
ment of exogenous variables in two distinct ways:
• by providing new deterministic trend assumption presets which allow for more flex-
ible specification of restricted and unrestricted deterministic coefficients, and
• by allowing users to add exogenous variables that are restricted to the cointegrating
relation, variables that are unrestricted, and variables that in both the short and
Econometrics and Statistics—71
To estimate a VEC using the new features, from the main application menu of an existing var
object, click on the Estimate button to open the VAR Specification estimation dialog. Alter-
nately, you may create a new VAR object by selecting Object/New Object... group, then
selecting VAR. Once the dialog appears, select Vector Error Correction in the Method drop-
down menu to display the VEC estimation dialog:
The Exogenous variables section of the main estimation dialog has fields for variables that
are Short-run (outside cointegrating equation) only, variables that are Long-run (inside
the cointegrating equation) only, and variables that are Both long-run and short-run.
Further, the Deterministic trend specifications dropdown on the Cointegration tab offers
additional predefined deterministic trend specifications.
72—New Features in EViews 13
Selecting a specification in which both intercept and trend are short-run only and clicking
on OK produces estimates using the new deterministics:
• See Chapter 45. “Vector Error Correction Models (VECMs),” on page 921 in User’s
Guide II for additional discussion.
Econometrics and Statistics—73
• See Var::ec (p. 1065) in the Object Reference for updated command documentation.
• See also the summary of “Cointegration Testing” on page 76 for related improve-
ments in EViews 13 cointegration testing.
To estimate BTVCVAR in EViews, click on Quick/Estimate VAR... or run var in the com-
mand window. This will open the VAR Specification dialog. Select Bayesian TVCVAR from
the VAR type dropdown menu. The dialog should now have the Basics, Prior, and Options
tabs.
Endogenous variables, lags, exogenous variables, and the estimation sample are set in the
Basics tab. Lags are required to be contiguous.
EViews gives users the option of setting aside a subset of the estimation sample for the pur-
pose of specifying a prior distribution. The observations that go towards specifying the prior
comprise the prior sample. The remaining observations make up the data sample, which is
used to update the prior.
74—New Features in EViews 13
Prior hyper-parameters are set inside the Prior tab. To help with setting the prior, EViews
maps the BTVCVAR prior hyper-parameters to a set of six scalar quantities. Users set these
scalars to specify a prior sample, control the variability of the time-varying coefficients, etc.
There are four categories in the Options tab: Sampler, Display, Smoother, and Stability.
• The burn-in size is the number of initial draws to discard. It is specified as a count.
The burn-in process gives the underlying Markov chain time to converge to the poste-
rior distribution.
• The posterior sample size is used to determine how many posterior draws are used
to carry out post-updating procedures (estimation, forecasting, impulses responses
analysis, etc.).
• The thinning size is used to thin the Markov chain. A thinning size of r indicates
that every r -th draw is stored. For example, no thinning occurs when r is set to 1,
and every other draw is stored when r is set to 2. By definition, thinning does not
apply to burn-in draws.
• The seed field is used to set the random seed for the posterior simulator. EViews will
generate a seed automatically if the user does not specify one. Click Clear to clear the
seed field.
• The number of subchains field determines how many subchains are used when the
posterior sample gets regenerated. Regeneration is typically much faster than initial
generation since subchains can be run in parallel.
Display options determine what to report as estimation results. Users can pick either poste-
rior median or posterior mean as their point estimate. The point estimate type selected here
will be applied to the coefficients, the observation covariance matrix, and the errors. Users
can also display equal-tailed credibility intervals (bands) at one or more credibility levels for
the coefficients. To do so, check the box next to Show credibility intervals. Bands use shad-
ing by default. To use lines instead, check the box next to Use lines.
A simulation smoother can be selected from the dropdown menu under Smoother. EViews
currently supports three simulation smoothers: the Cholesky factor algorithm (CFA), the
Kalman filter and smoother (KFS), and the method of McCausland, Miller, & Pelletier
(MMP). For more information, see McCausland, Miller, & Pelletier (2011) and the references
therein.
To enforce stable VAR coefficients at each date within the data sample, select Cogley & Sar-
gent from the dropdown menu under Stability. The maximum number of attempts thresh-
old ensures that the sampler does not get stuck in an infinite loop in an attempt to obtain
stable draws.
Once the BTVCVAR model has been specified, click on OK to run the posterior simulator.
Progress is displayed in the bottom left corner of the EViews window. Once posterior simu-
lation is complete, estimates and other statistics based on the posterior sample are com-
puted.
Estimation results are presented in a spool-like object. The nodes under Output Sections in
the left pane are used for navigation. For example, clicking on the Summary node will bring
76—New Features in EViews 13
the summary table into focus. The checkboxes that appear below Display Coefficients are
used to show/hide coefficient series that are associated to specific endogenous variables,
lags, and exogenous variables. For example, unchecking the box next to C hides the coeffi-
cient series associated to the constant term in all graphs.
• See Var::btvcvar (p. 1051) in the Object Reference for new command documenta-
tion.
Cointegration Testing
The introduction of new deterministic trend settings and exogenous variable support in
EViews 13 VEC estimation offers corresponding improvements in cointegration testing in
both group and var object settings.
To perform a Johansen cointegration test to determine the rank that should be used in esti-
mation of the VEC select View/Cointegration Test/Johansen System Cointegration Test...,
from a group window, or Views/Cointegration Test... from an estimated VAR object win-
dow using. In the latter case, the test dialog will be pre-filled with the cointegration specifi-
cation, if applicable:
All new settings allow you to specify new deterministic trend specifications with restricted
constants and trends, and now allow you to specify exogenous variables that appear in the
long-run cointegrating relation.
Econometrics and Statistics—77
• See Group::coint (p. 397) for updated group object and Var::coint (p. 1058) in
the Object Reference for updated var object command documentation.
• See also the summary “Enhanced VEC Estimation” on page 70 for related improve-
ments in EViews 13 VEC estimation.
Diagnostics in ARDL
In addition to the support for nonlinear ARDL specifications, EViews 13 offers a number of
new ARDL diagnostics. These diagnostics are designed to help you examine the dynamic
behavior of your variables, the long-run properties of your specification, and the appropri-
ateness of your model:
• Improved display tools make it easier to use the ARDL estimates to examine the
short and long-run representations of the distributed lag regressors and cointegrating
relationships. (“Enhanced Presentation of ARDL Results” on page 78.)
78—New Features in EViews 13
• EViews now produces cumulative dynamic multipliers (CDM) graphs showing cumu-
lative marginal contribution of an explanatory variable to the dependent variable
(“Cumulative Dynamic Multiplier Graphs” on page 81).
• Bounds tests are for cointegration are now available as a view of your ARDL equa-
tion (“Bounds Tests” on page 84).
• You may evaluate symmetry restrictions on the coefficients of the asymmetric long
and short-run regressors (“Testing for Asymmetry” on page 85).
The CEC focuses on the natural division between long-run and short-run dynamics, with the
former generated by regressors entering in levels/lags, and the latter by regressors in differ-
ences
Econometrics and Statistics—79
while the EC representation uses the cointegrating relation to highlight the speed of adjust-
ment to long-run equilibrium,
80—New Features in EViews 13
• See “Error Correction Output View” on page 331 in User’s Guide II.
• See also Equation::ecresults (p. 109) in the Object Reference for command docu-
mentation.
• You may enter the horizon length h (number of periods to compute the multipliers)
in the Horizon edit field.
• For NARDL models, you will be offered the opportunity to display confidence inter-
vals for the computed absolute difference between the positive and negative compo-
nents for a given regressor. CIs are not available for linear ARDL specifications.
You may check the Show CI to display the CIs, and Shade CI band to display the CIs
as bands instead of lines. The Level edit field controls the size of the CI, and the Rep-
lications governs how many replications to use in resampling for computing the CI.
Click on OK to continue. EViews will open a spool view, with each node in the spool con-
taining the CDM graph corresponding to one of the explanatory variables.
For symmetric linear models, each graph contains a CDM along with a dashed horizontal
line denoting the long-run value.
Econometrics and Statistics—83
For asymmetric nonlinear models, each graph will show the positive and negative responses
and limit values, along with a line showing the absolute value of the difference between the
two, and if requested, a CI for the absolute difference:
84—New Features in EViews 13
Bounds Tests
EViews 13 now performs Pesaran’s (2001) bounds tests for cointegration that are robust to
whether variables of interest are I 0 , I 1 , or mutually cointegrated. These tests are for-
mulated as standard F-test or Wald tests of parameter significance in the cointegrating rela-
tionship of the Conditional Error Correction model for each cross-section.
To perform the bounds tests, click on View/ARDL Diagnostics/Bounds Tests. The results of
the test performed are presented in the first table of a spool. Below the table of long run
coefficient estimates are two additional tables, respectively titled as the F -Bounds Test and
the t -Bounds Test.
Econometrics and Statistics—85
To perform the symmetry tests on the estimated NARDL, click on View/ARDL Diagnostics/
Symmetry Test from an estimated equation:
86—New Features in EViews 13
Long-run
Short-run
For general discussion, see Chapter 29. “Linear and Nonlinear ARDL,” on page 321 in User’s
Guide II which discusses a variety of these features in non-panel settings
• See Equation::ecresults (p. 109) in the Object Reference for command documen-
tation.
The Cointegrating Relations Plots view displays information about the error correction term
EC t representing the cointegrating relation. Select View/ARDL Diagnostics/Cross-sec-
tional Cointegrating Relations Plots to display a spool of plots for each cross-section:
88—New Features in EViews 13
• See Equation::cointrel (p. 95) in the Object Reference for command documenta-
tion.
• See Equation::boundstest (p. 68) in the Object Reference for command documen-
tation.
+ –
H0: lj lj
(0.1)
+ –
H1: lj lj
To perform the symmetry test, select View/ARDL Diagnostics/Symmetry Test from the
menu of a nonlinear asymmetric NARDL/PMG equation:
• See Equation::symmtest (p. 213) in the Object Reference for command documenta-
tion.
Similarity Tests
We may easily perform a Hausman test on the similarity of the PMG estimator to the mean-
group (MG) and dynamic fixed effects (DFE) estimators. To conduct the test, click on ARDL
Diagnostics/PMG Similarity Test:
• See Equation::similarity (p. 207) in the Object Reference for command documen-
tation.
Recall that previous versions of EViews imposed important restrictions on the display of
impulse response confidence intervals.
• First, for impulse-response confidence intervals computed using analytic or Monte
Carlo standard errors, prior versions of EViews only allowed for the computation of
+/- 2 standard error bands. There were no options for displaying different sized
intervals, let alone for displaying different intervals in the same graph:
• Second prior EViews only allowed you to use dotted lines to display the confidence
bands around the impulse-responses:
92—New Features in EViews 13
• First, by default, EViews 13 now uses shaded areas to depict confidence bands:
94—New Features in EViews 13
To display your graphs using the traditional lines, check the box next to Display
intervals using lines in the impulse response dialog. If coming from the command
line, you may use the uselines keyword in the impulse command options to dis-
play in the previous format.
• Second, EViews 13 now lets users display analytic and monte carlo confidence inter-
vals with one or more user-specified sizes:
Econometrics and Statistics—95
When multiple shaded bands are displayed, EViews automatically uses the new
EViews 13 line and shade transparency engine (“Graph Line and Shade Transpar-
ency” on page 45) to display the bands using gradients:
Using the selection interface to focus on the topmost left graph, better shows the
shading:
• Further, EViews 13 now allows you to display confidence intervals in the impulse-
response combined graphs view:
96—New Features in EViews 13
All of the new shading and multiple band support is also provided for variance decomposition
in multiple graph
Econometrics and Statistics—97
• See Var::impulse (p. 1078) and Var::vdecomp (p. 1111) in the Object Reference, for
updated command documentation.
Previously, forecasting via command generally required the user to first set the global smpl
using a smpl statement prior to issuing the forecasting command.
For example, the following lines estimated the equation using one sample, and then forecast
over two different samples,
smpl 1990q1 2010q4
equation eq1.ls y c x1 x2 x3
smpl 2011q1 2020q4
eq1.forecast fcst1
smpl 2008q3 2020q4
eq2.forecast fcst2
Econometrics and Statistics—99
In this case, setting the global sample prior to equation forecasting was only mildly inconve-
nient. However, in some settings, particularly those involving non-equation forecasting
where you are generating multiple forecasts and data, setting and resetting the global sam-
ple was inconvenient at best, and prone to error.
In the first set of procedures, the forecast sample is set independently of the remainder of
the procedure. For these cases, EViews 13 offers an option to allow you to set the sample
range pair directly using the option:
The second type of forecasting procedure sets the forecast sample one-period beyond a pre-
viously specified estimation sample, and then forecasting continues from that period onward
until a forecast endpoint.
In this case, EViews 13 allows you to set the forecast sample in two distinct ways: by speci-
fying the number of periods to forecast, or by specifying the forecast end date:
to
smpl 1990q1 2010q4
equation eq1.ls y c x1 x2 x3
eq1.forecast(forcsmpl="2011q1 2020q4") fcst1
eq1.forecast(forcsmpl="2008q3 2020q4") fcst2
Command Language
Updated Command List
(Unless otherwise specified, all of the object views and procedures are in Command and Pro-
gramming Reference.)
Commands
dbopen ................. open a database (p. 371). (updated)
deleteaddin........... unregister a program file as an EViews Add-in (p. 380). (new)
pageload............... load one or more pages into a workfile from a workfile or a foreign
data source (p. 481). (updated)
pagesave .............. save page into a workfile or a foreign data source (p. 483).
(updated)
stom..................... Converts series, alpha, or group to vector, svector, or matrix after
removing observations with missing values (p. 843). (updated)
stomna ................. Converts series, alpha, or group to vector, svector, or matrix with-
out removing observations with missing values (p. 844). (updated)
wfdir .................... change the workfile view to a simple object directory listing
(p. 566). (new)
wffilter ................. change the workfile object filter for the current workfile window
(p. 566). (new)
wfopen................. open workfile or foreign source data as a workfile (p. 567).
(updated)
wfsave.................. save workfile to disk as a workfile or a foreign data source (p. 583).
(updated)
xopen................... open a connection to an external application (p. 599). (updated)
Coef
Coef Procs
export ...................save coef as Excel 2007 XLSX, CSV, tab-delimited ASCII text, RTF,
HTML, Enhanced Metafile, PDF, TEX, or MD file on disk (p. 25).
(new)
import...................imports data from a foreign file into the coef object (p. 29). (new)
Coef Values
@droprow(arg) .....Returns the coef with the rows defined by arg removed. arg may be
an integer, vector of integers, string, or svector of strings. Integer
values correspond to rows and string values correspond to previ-
ously defined row labels. (new)
@row(arg) ............Returns the rows defined by arg. arg may be an integer, vector of
integers, string, or svector of strings. Integer values correspond to
rows and string values correspond to previously defined row labels.
(new)
Equations
Equation Methods
ardl.......................least squares with autoregressive distributed lags (p. 61). (updated)
did ........................estimate a panel equation using the difference-in-difference estima-
tor (p. 103). (new)
ls ..........................equation using least squares or nonlinear least squares (p. 156).
(updated)
Equation Views
boundstest ............perform the Pesaran, Shin and Smith (2001) bounds test of long-run
relationships from an ARDL estimated equation (p. 68). (updated)
cointrel .................display information about the cointegrating relation specification
and the coefficients in ARDL estimated equation (p. 95). (new)
didcs.....................compute Callaway-Sant’Anna decomposition for difference-in-differ-
ence estimation (p. 104). (new)
didgbdecomp.........perform Goodman-Bacon decomposition for difference-in-difference
estimation (p. 105). (new)
didtrends...............show difference-in-difference trends summary in graphical or tabu-
lar form (p. 106). (new)
dynmult ................compute dynamic multipliers for long-run regressors in ARDL equa-
tions (p. 108). (new)
ecresults................display the conditional error correction (CEC) and error correction
(EC) regression results (p. 109). (new)
similarity ..............compute PMG Hausman test for similarity (p. 207). (new)
102—New Features in EViews 13
Equation Procs
didmakeeq ........... create an equation object with the underlying fixed-effects estima-
tion of a difference-in-difference equation (p. 105). (new)
fit......................... static forecast (p. 115). (updated)
forecast ................ dynamic forecast (p. 119). (updated)
Equation Values
@varselkept ......... space delimited list of variables kept by model selection. (new)
@varselrejected .... space delimited list of the variables dropped by model selection.
(new)
Geomap
Geomap Procs
setfillcolor ............ define the fill (background) color used in geomap shapes using
values in a series (p. 311). (updated)
setjust .................. set the display justification for multi-line area labels (p. 318). (new)
setshapelabel ........ set which attribute to use or create a custom label to use when
labeling shapes (p. 319). (new)
Geomap Values
@ids("attr", "val") .........space delimited string containing the ID numbers of all the
areas which has the matching attribute value for the specified attri-
bute name. (new)
Graph
Graph Procs
datalabel .............. controls labeling of the observations/data in time plots (p. 344).
(new)
datelabel .............. controls labeling of the bottom date/time axis in time plots (p. 346).
(updated)
setelem................. set individual line, symbol, bar and legend options for each series
in the graph (p. 373). (updated)
Group
Group Views
coint .................... test for cointegration between series in a group (p. 397). (updated)
Group Procs
setfillcolor ............ set custom spreadsheet fill coloring for the group (p. 447).
(updated)
Command Language—103
settextcolor ...........set custom spreadsheet text coloring for the group (p. 457).
(updated)
Matrix
Matrix Procs
clearcollabels ........clear the column labels in a matrix object (p. 508). (new)
clearrowlabels .......clear the row labels in a matrix object (p. 509). (new)
export ...................save matrix as Excel 2007 XLSX, CSV, tab-delimited ASCII text, RTF,
HTML, Enhanced Metafile, PDF, TEX, or MD file on disk (p. 517).
(new)
import...................imports data from a foreign file into the matrix object (p. 521).
(updated)
resize....................resize the matrix object (p. 537) (new).
setcollabels ...........set the column labels in a matrix object (p. 538). (updated)
setrowlabels ..........set the row labels in a matrix object (p. 541). (updated)
Matrix Values
@col(arg) .............Returns the columns defined by arg. arg may be an integer, vector
of integers, string, or svector of strings. Integer values correspond to
rows and string values correspond to previously defined column
labels. (updated)
@dropcol(arg) ......Returns the matrix with the columns defined by arg removed. arg
may be an integer, vector of integers, string, or s svector of strings.
Integer values correspond to rows and string values correspond to
previously defined column labels. (new)
@droprow(arg) .....Returns the matrix with rows defined by arg removed. The arg may
be integer, vectors of integers, strings, or svectors of strings. Integer
values correspond to rows and string values correspond to previ-
ously defined row labels. (new)
@dropboth(arg1, arg2) ... Returns the matrix with the rows defined by arg1 and col-
umns defined by arg2 removed. The args may be integers, vectors
of integers, string, or svectors of strings. Integer values correspond
to rows and string values correspond to previously defined row
labels. (new)
@row(arg) ............Returns the rows defined by arg. arg may be an integer, vector of
integers, string, or svector of strings. Integer values correspond to
rows and string values correspond to previously defined row labels.
(updated)
104—New Features in EViews 13
@sub(arg1, arg2).. Returns the matrix with rows defined by arg1 and columns with
defined by arg2. The args may be integers, vectors of integers,
strings, or svectors of strings. Integer values correspond to rows and
string values correspond to previously defined row labels.
(updated)
Rowvector
Rowvector Procs
clearcollabels........ clear the column labels in a rowvector object (p. 645). (new)
clearrowlabels ...... clear the row labels in a rowvector object (p. 647). (new)
export .................. export vector as Excel 2007 XLSX, CSV, tab-delimited ASCII text,
RTF, HTML, Enhanced Metafile, PDF, TEX, or MD file on disk
(p. 648). (new)
import .................. imports data from a foreign file into the vector object (p. 653).
(updated)
resize ................... resize the rowvector object (p. 662). (new)
setcollabels........... set the column labels in a rowvector object (p. 663). (new)
setrowlabels ......... set the row labels in a rowvector object (p. 666). (new)
Rowvector Values
@col(arg)............. Returns the columns defined by arg. arg may be an integer, vector
of integers, string, or svector of strings. Integer values correspond to
rows and string values correspond to previously defined column
labels. (new)
@dropcol(arg)...... Returns the matrix with the columns defined by arg removed. arg
may be an integer, vector of integers, string, or svector of strings.
Integer values correspond to rows and string values correspond to
previously defined column labels. (new)
@t ....................... Returns transpose. (new)
Series
Series Procs
autoarma.............. forecast from a series using an ARIMA model with automatic deter-
mination of the specification (p. 694). (updated)
dsa ....................... seasonally adjust daily data using the DSA method (p. 710). (new)
ets ........................ perform Error-Trend-Season (ETS) estimation and exponential
smoothing (p. 716). (updated)
forcavg ................. average forecasts of a series (p. 720). (updated)
setfillcolor ............ define the fill (background) color used in series spreadsheets
(p. 757). (updated)
Command Language—105
settextcolor ...........set custom spreadsheet text coloring for the series (p. 766).
(updated)
smooth..................exponential smoothing (p. 773). (updated)
Svector
Svector Procs
clearcollabels ........clear the column labels in a svector object (p. 889). (new)
clearrowlabels .......clear the row labels in a svector object (p. 890). (new)
fill.........................fill the svector with the specified values (p. 892). (new)
resize....................resize the svector object (p. 894). (new)
setcollabels ...........set the column labels in a svector object (p. 895). (new)
setrowlabels ..........set the row labels in a svector object (p. 895). (new)
Svector Values
@droprow(arg) .....Returns the svector with the rows defined by arg removed. arg may
be an integer, vector of integers, string, or svector of strings. Integer
values correspond to rows and string values correspond to previ-
ously defined row labels. (new)
@row(arg) ............Returns the rows defined by arg. arg may be an integer, vector of
integers, string, or svector of strings. Integer values correspond to
rows and string values correspond to previously defined row labels.
(new)
Sym
Sym Procs
clearcollabels ........clear the column labels in a vector object (p. 900). (new)
clearrowlabels .......clear the row labels in a vector object (p. 902). (new)
export ...................save sym matrix as Excel 2007 XLSX, CSV, tab-delimited ASCII text,
RTF, HTML, Enhanced Metafile, PDF, TEX, or MD file on disk
(p. 912). (new)
import...................imports data from a foreign file into the sym object (p. 916).
(updated)
resize....................resize the sym object (p. 926). (new)
setcollabels ...........set the column labels in a sym object (p. 927). (new)
setrowlabels ..........set the row labels in a sym object (p. 930). (new)
Sym Values
@col(arg) .............Returns the columns defined by arg. arg may be an integer, vector
of integers, string, or svector of strings. Integer values correspond to
rows and string values correspond to previously defined column
labels. (new)
106—New Features in EViews 13
@dropcol(arg)...... Returns the matrix with the columns defined by arg removed. arg
may be an integer, vector of integers, string, or svector of strings.
Integer values correspond to rows and string values correspond to
previously defined column labels. (new)
@droprow(arg) .... Returns the matrix with rows defined by arg1 and columns with
rows defined by arg2 removed. The args may be integer, vectors of
integers, strings, or svectors of strings. Integer values correspond to
rows and string values correspond to previously defined row labels.
(new)
@dropboth(arg) ... Returns the sym with the rows and columns defined by arg
removed. arg may be an integer, vector of integers, string, or svector
of strings. Integer values correspond to rows and string values cor-
respond to previously defined row labels. (new)
@dropboth(arg1, arg2) ...Returns the matrix with the rows defined by arg1 and col-
umns defined by arg2 removed. The args may be integers, vectors
of integers, string, or svectors of strings. Integer values correspond
to rows and string values correspond to previously defined row
labels. (new)
@row(arg) ........... Returns the rows defined by arg. arg may be an integer, vector of
integers, string, or svector of strings. Integer values correspond to
rows and string values correspond to previously defined row labels.
(new)
@sub(arg)............ Returns the sym with rows defined by arg1 and columns with rows
defined by arg2. The args may be integers, vectors of integers,
strings, or svectors of strings. Integer values correspond to rows and
string values correspond to previously defined row labels. (new)
@sub(arg1, arg2).. Returns the matrix with rows defined by arg1 and columns with
defined by arg2. The args may be integers, vectors of integers,
strings, or svectors of strings. Integer values correspond to rows and
string values correspond to previously defined row labels.
(updated)
@t ....................... Returns transpose. (new)
Table
Table Procs
deletecells ............ delete cells from a table (p. 983). (updated)
deletecol............... remove columns from a table (p. 984). (updated)
deleterow ............. remove rows from a table (p. 984). (updated)
fixcol.................... fixes a set of columns to left of the spreadsheet view so that the
leading columns are always in view (p. 986). (new)
Command Language—107
fixrow ...................fixes a set of rows at the top of the spreadsheet view so that the
leading rows are always in view (p. 987). (new)
fixrowcol ..............fixes a set of rows at the top and a set of columns to left of a spread-
sheet view so that the leading rows and columns are always in view
(p. 987). (new)
insertcells..............insert cells into a table (p. 988). (updated)
insertcol................insert additional columns into a table (p. 989). (updated)
insertrow ..............insert additional rows into a table (p. 989). (updated)
save ......................save table as Excel 2007 XLSX, CSV, tab-delimited ASCII text, RTF,
HTML, Enhanced Metafile, PDF, TEX, or MD file on disk (p. 992).
(updated)
setfillcolor .............set the fill (background) color of a set of table cells (p. 996).
(updated)
setfont...................set the font for the text in a set of table cells (p. 998). (updated)
setformat...............set the display format of a set of table cells (p. 999). (updated)
setheight ...............set the row height in a set of table cells (p. 1003). (updated)
setjust ...................set the justification for a set of table cells (p. 1005). (updated)
setlines .................set the line characteristics and borders for a set of table cells
(p. 1006). (updated)
settextcolor ...........set the text color in a set of table cells (p. 1010). (updated)
setwidth................set the column width for a set of table cells (p. 1011). (updated)
String values
@find(“arg”) .........string containing the cell identifiers meeting the boolean argument.
This argument can be a mathematical or string expression. For
example:
string s = tab1.@find("[b1:c15]>0.3")
returns a list of cells between B1 and C15 greater than 0.3;
string s = tabl1.@find("[a1:e67]== ""1949q4""")
returns a list of cells between A1 and E67 matching the string ‘1949q4’ (string com-
parisons ignore case);
string s = tab1.@find("[@all]==0.5")
returns a list of cells in the table equal to 0.5;
string s = t.@find("@instr([@all],""in"")")
returns a list of cells in the table containing the substring ‘in’;
string s = t.@find("[b3:c5]<[d5]")
returns a list of cells between B3 and C5 less than cell D5;
string s = t.@find(“@left([@all],1)==""cp"")
108—New Features in EViews 13
VAR
Var Methods
btvcvar ................. estimate a Bayesian time-varying coefficients VAR specification
(p. 1051). (new)
ec......................... estimate a vector error correction model (p. 1065). (updated)
Var View
coint .................... Johansen cointegration test (p. 1058). (updated)
impulse ................ impulse response functions (p. 1078). (updated)
vdecomp .............. variance decomposition (p. 1111). (updated)
Var Procs
fit......................... produce static forecasts from an estimated VAR (p. 1071). (updated)
forecast ................ produce dynamic forecasts from an estimated VAR or VEC
(p. 1073). (updated)
Var Values
@cointadj............. matrix containing cointegrating variable adjustment coefficients a
(where applicable).
@cointadjse ......... matrix containing standard errors of cointegrating variable adjust-
ment coefficients (where applicable).
@cointlr............... matrix containing long-run equilibrium coefficients P ab
(where applicable)
@cointlrse............ matrix containing standard errors of long-run equilibrium coeffi-
cients (where applicable)
@cointsr .............. matrix containing short-run adjustment coefficients G (where
applicable).
@cointsrse ........... matrix containing standard errors of short-run adjustment coeffi-
cients (where applicable).
Vector
Vector Procs
clearcollabels........ clear the column labels in a vector object (p. 1118). (new)
clearrowlabels ...... clear the row labels in a vector object (p. 1118). (new)
export .................. export vector as Excel 2007 XLSX, CSV, tab-delimited ASCII text,
RTF, HTML, Enhanced Metafile, PDF, TEX, or MD file on disk
(p. 1123). (new)
import .................. imports data from a foreign file into the vector object (p. 1127).
(updated)
resize ................... resize the vector object (p. 1137). (new)
setcollabels........... set the column label for the vector object (p. 1137). (updated)
Command Language—109
setrowlabels ..........set the row labels for the vector object (p. 1141). (updated)
Vector Values
@droprow(arg) .....Returns the vector with the rows defined by arg removed. arg may
be an integer, vector of integers, string, or svector of strings. Integer
values correspond to rows and string values correspond to previ-
ously defined row labels. (new)
@row(arg) ............Returns the rows defined by arg. arg may be an integer, vector of
integers, string, or svector of strings. Integer values correspond to
rows and string values correspond to previously defined row labels.
(updated)
@t ........................Returns transpose. (new)
Matrix Functions
@grid ...................Vector containing an equally spaced grid of elements (p. 808).
(new)
@hcat ...................Horizontally concatenate matrix objects (p. 809). (updated)
@range.................Returns a vector holding the sequential integers staring at l and
ending at h (p. 827). (new)
@vech ..................Vectorize (stack columns of) lower triangle of matrix object
(p. 859). (updated)
@zeros .................Matrix or vector of zeros (p. 860). (new)
Support Functions
@makevalidname .string containing an uppercased valid EViews name based on the
input (p. 879). (updated)
@xtype .................returns the string describing the type of the active external applica-
tion (p. 907). (new)
Workfile Functions
@event .................event identifier for observation (see “Event Function (@event),” on
page 668). (updated)
110—New Features in EViews 13
@holiday ............. returns the proportion of an annual event covered by each observa-
tion (see “Holiday Functions,” on page 669). (updated)
@holidayset ......... return the proportion of an annual set of events covered by each
observation (see “Holiday Functions,” on page 669). (updated)
Workfile Compatibility
With few exceptions, EViews 13 workfiles are backward compatible with EViews 12. Note
that the following objects are new or have been modified in Version 12:
• Estimation objects estimated with methods that employ new features (nonlinear
ARDL and PMG, Difference-in-difference equations, Bayesian Time-varying Coeffi-
cient VAR, VECs with general deterministics inside the cointegrating equation).
If you have saved workfiles containing any of the above objects and open them in earlier
versions, 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.
Note that the Census Bureau has tested this version of X-13ARIMA-SEATS on Windows 10
and indicates that it may work on previous Windows versions.
112—New Features in EViews 13