
- •Table of Contents
- •Foreword
- •Chapter 1. A Quick Walk Through
- •Workfile: The Basic EViews Document
- •Viewing an individual series
- •Looking at different samples
- •Generating a new series
- •Looking at a pair of series together
- •Estimating your first regression in EViews
- •Saving your work
- •Forecasting
- •What’s Ahead
- •Chapter 2. EViews—Meet Data
- •The Structure of Data and the Structure of a Workfile
- •Creating a New Workfile
- •Deconstructing the Workfile
- •Time to Type
- •Identity Noncrisis
- •Dated Series
- •The Import Business
- •Adding Data To An Existing Workfile—Or, Being Rectangular Doesn’t Mean Being Inflexible
- •Among the Missing
- •Quick Review
- •Appendix: Having A Good Time With Your Date
- •Chapter 3. Getting the Most from Least Squares
- •A First Regression
- •The Really Important Regression Results
- •The Pretty Important (But Not So Important As the Last Section’s) Regression Results
- •A Multiple Regression Is Simple Too
- •Hypothesis Testing
- •Representing
- •What’s Left After You’ve Gotten the Most Out of Least Squares
- •Quick Review
- •Chapter 4. Data—The Transformational Experience
- •Your Basic Elementary Algebra
- •Simple Sample Says
- •Data Types Plain and Fancy
- •Numbers and Letters
- •Can We Have A Date?
- •What Are Your Values?
- •Relative Exotica
- •Quick Review
- •Chapter 5. Picture This!
- •A Simple Soup-To-Nuts Graphing Example
- •A Graphic Description of the Creative Process
- •Picture One Series
- •Group Graphics
- •Let’s Look At This From Another Angle
- •To Summarize
- •Categorical Graphs
- •Togetherness of the Second Sort
- •Quick Review and Look Ahead
- •Chapter 6. Intimacy With Graphic Objects
- •To Freeze Or Not To Freeze Redux
- •A Touch of Text
- •Shady Areas and No-Worry Lines
- •Templates for Success
- •Point Me The Way
- •Your Data Another Sorta Way
- •Give A Graph A Fair Break
- •Options, Options, Options
- •Quick Review?
- •Chapter 7. Look At Your Data
- •Sorting Things Out
- •Describing Series—Just The Facts Please
- •Describing Series—Picturing the Distribution
- •Tests On Series
- •Describing Groups—Just the Facts—Putting It Together
- •Chapter 8. Forecasting
- •Just Push the Forecast Button
- •Theory of Forecasting
- •Dynamic Versus Static Forecasting
- •Sample Forecast Samples
- •Facing the Unknown
- •Forecast Evaluation
- •Forecasting Beneath the Surface
- •Quick Review—Forecasting
- •Chapter 9. Page After Page After Page
- •Pages Are Easy To Reach
- •Creating New Pages
- •Renaming, Deleting, and Saving Pages
- •Multi-Page Workfiles—The Most Basic Motivation
- •Multiple Frequencies—Multiple Pages
- •Links—The Live Connection
- •Unlinking
- •Have A Match?
- •Matching When The Identifiers Are Really Different
- •Contracted Data
- •Expanded Data
- •Having Contractions
- •Two Hints and A GotchYa
- •Quick Review
- •Chapter 10. Prelude to Panel and Pool
- •Pooled or Paneled Population
- •Nuances
- •So What Are the Benefits of Using Pools and Panels?
- •Quick (P)review
- •Chapter 11. Panel—What’s My Line?
- •What’s So Nifty About Panel Data?
- •Setting Up Panel Data
- •Panel Estimation
- •Pretty Panel Pictures
- •More Panel Estimation Techniques
- •One Dimensional Two-Dimensional Panels
- •Fixed Effects With and Without the Social Contrivance of Panel Structure
- •Quick Review—Panel
- •Chapter 12. Everyone Into the Pool
- •Getting Your Feet Wet
- •Playing in the Pool—Data
- •Getting Out of the Pool
- •More Pool Estimation
- •Getting Data In and Out of the Pool
- •Quick Review—Pools
- •Chapter 13. Serial Correlation—Friend or Foe?
- •Visual Checks
- •Testing for Serial Correlation
- •More General Patterns of Serial Correlation
- •Correcting for Serial Correlation
- •Forecasting
- •ARMA and ARIMA Models
- •Quick Review
- •Chapter 14. A Taste of Advanced Estimation
- •Weighted Least Squares
- •Heteroskedasticity
- •Nonlinear Least Squares
- •Generalized Method of Moments
- •Limited Dependent Variables
- •ARCH, etc.
- •Maximum Likelihood—Rolling Your Own
- •System Estimation
- •Vector Autoregressions—VAR
- •Quick Review?
- •Chapter 15. Super Models
- •Your First Homework—Bam, Taken Up A Notch!
- •Looking At Model Solutions
- •More Model Information
- •Your Second Homework
- •Simulating VARs
- •Rich Super Models
- •Quick Review
- •Chapter 16. Get With the Program
- •I Want To Do It Over and Over Again
- •You Want To Have An Argument
- •Program Variables
- •Loopy
- •Other Program Controls
- •A Rolling Example
- •Quick Review
- •Appendix: Sample Programs
- •Chapter 17. Odds and Ends
- •How Much Data Can EViews Handle?
- •How Long Does It Take To Compute An Estimate?
- •Freeze!
- •A Comment On Tables
- •Saving Tables and Almost Tables
- •Saving Graphs and Almost Graphs
- •Unsubtle Redirection
- •Objects and Commands
- •Workfile Backups
- •Updates—A Small Thing
- •Updates—A Big Thing
- •Ready To Take A Break?
- •Help!
- •Odd Ending
- •Chapter 18. Optional Ending
- •Required Options
- •Option-al Recommendations
- •More Detailed Options
- •Window Behavior
- •Font Options
- •Frequency Conversion
- •Alpha Truncation
- •Spreadsheet Defaults
- •Workfile Storage Defaults
- •Estimation Defaults
- •File Locations
- •Graphics Defaults
- •Quick Review
- •Index
- •Symbols

56—Chapter 2. EViews—Meet Data
ful if the data are in a spreadsheet or a text file. It uses dialogs similar to the dialogs for
Spreadsheet Read or ASCII Read from File/Open/Foreign Data as Workfile…
One more clipboard alternative makes you do more work, but gives you a good deal of manual control. Use the Quick menu at the top of the EViews menu bar for the command Quick/Edit Group (Empty Series). As you might infer from the suggestive name, this brings up an empty group window all ready for you to enter data for one or more series. You can paste anywhere in the window. Essentially you are working in a spreadsheet view, giving you complete manual control over editing. This is handy when you only have part of a series or when you’re gluing together data from different sources.
Among the Missing
Mostly, data are numbers. Sometimes, data are strings of text. Once in a while, data ain’t…
In other words, sometimes you just don’t know the value for a particular data point—so you mark it NA.
Statistical hint: Frequently, the best thing to do with data you don’t have is nothing at all. EViews’ statistical procedures offer a variety of options, but the usual default is to omit NA observations from the analysis.
How do you tell EViews that a particular observation is not available? If you’re entering data by typing or copy-and-paste, you don’t have to tell EViews. EViews initializes data to NA. If you don’t know a particular value, leave it out and it will remain marked NA.
The harder issue comes when you’re reading data in from existing computer files. There are two separate issues you may have to deal with:
•How do you identify NA values to EViews?
•What if multiple values should be coded NA?
Reading NAs from a file
There are a couple of situations in which EViews identifies NAs for you automatically. First, if EViews comes across any nonnumeric text when it’s looking for a number, EViews converts the text to NA. For example, the data string “1 NA 3” will be read as the number 1, an NA, and the number 2. The string “1 two 3” will be read the same way—there’s nothing magic about the letters “NA” when they appear in an external file. Second, EViews will usually pick up correctly any missing data codes from binary files created by other statistical programs.
If you have a text file (or an Excel file) which has been coded with a numerical value for NA—“-999” and “0” are common examples—you can tell EViews to translate these into NA

Quick Review—57
by filling out the field Text representing NA in the dialog used to read in the data. EViews allows only one value to be automatically translated this way.
Reading alpha series with missing values is slightly more problematic, because any string of characters might be a legitimate value. Maybe the characters “NA” are an abbreviation for North America! For an alpha series, you must explicitly specify the string used to represent missing data in the Text representing NA field.
Handling multiple missing codes
Some statistical programs allow multiple values to be considered missing. Others, EViews being a singular example, permit only one code for missing values. Suppose that for some variable, call it X, the values -9, -99, and -999 are all suppose to represent missing data. The way to handle this in EViews is to read the data in without specifying any values as missing, and then to recode the data. In this example, this could be done by choosing Quick/Generate Series… and then using the Generate Series by Equation dialog to set the sample to include just those values of x that you want recoded to NA.
If you prefer, you can accomplish the same task with the recode command, as in:
x=@recode(x=-9 or x=-99 or x=-999, NA, x)
If the logical condition in the first argument of @recode is true (X is missing, in this example), the value of @recode is the second argument (NA), otherwise it’s the third argument
(X).
Hint: It might be wiser to make a new series, say XRECODE, rather than change X itself. This leaves open the option to treat the different missing codes differently at a later date. If you change X, there’s no way later to recover the distinct -9, -99, and -999 codes.
Quick Review
The easiest way to get data into EViews is to read it in from an existing data file. EViews does a great job of interpreting data from spreadsheet and text files, as well as reading files created by other statistical programs.

58—Chapter 2. EViews—Meet Data
Whether reading from a file or typing your data directly into an EViews spreadsheet, think of the data as being arranged in a rectangle—observations are rows and series are columns.
Appendix: Having A Good Time With Your Date
EViews uses dates in quite a few places. Among the most important are:
•Labeling graphs and other output.
•Specifying samples.
•In data series.
Most of the time, you can specify a date in any reasonable looking way. The following commands all set up the same monthly workfile:
wfcreate m 1941m12 1942m1
wfcreate m 41:12 42:1
wfcreate m "december 1941" "january 1942"
Hint: If your date string includes spaces, put it in quotes.
Canadians and Americans, among others, write dates in the order month/day/year. Out of the box, EViews comes set up to follow this convention. You can change to the “European” convention of day/month/year by using the Options/Dates & Frequency Conversion… menu. You can also switch between the colon and frequency delimiter, e.g., “41:12” versus “41m12”.
Hint: Use frequency delimiters rather than the colon. “41q2 “always means the second quarter of 1941, while “41:2 “means the second quarter of 1941 when used in a quarterly workfile but means February 1941 in a monthly workfile.
Ambiguity is not your friend.

Appendix: Having A Good Time With Your Date—59
The most common use of dates as data is as the id series that appears under the Obs column in spreadsheet views and on the horizontal axis in many graphs. But nothing stops you from treating the values in any EViews series as dates. For example, one series might give the date a stock was bought and another series might give the date the same stock was sold. Internally, EViews stores dates as “date numbers”—the number of days since January 1, 0001AD according to the Gregorian proleptic (don’t ask) calendar. For example, the series DATE, created with the command “series date=@date”, looks like this.
Great for computers—not so great for humans. So EViews lets you change the display of a series containing date numbers. In a spreadsheet view, you can change the display by rightclicking on a column and choosing Display format…. You can also open a series, hit the button and change the Numeric display field to one of the date or time formats. Then more fields will appear to let you further customize the format. This looks a lot better.
EViews will also translate text strings into dates when doing an ASCII Read, and set the initial display of the series read to be a date format.
Hint: Since dates are stored as numbers, you can do sensible date arithmetic. If the series DATEBOUGHT and DATESOLD hold the information suggested by their respective names, then:
series daysheld = datesold - datebought
does just what it should.
So dates are pretty straightforward. Except when they’re not. If you want more details, the Command and Programming Reference has a very nice 20+ page section for you.

60—Chapter 2. EViews—Meet Data