
- •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

32—Chapter 2. EViews—Meet Data
Hint: EViews uses NA to indicate “not available” for numeric series and just an empty string for a “not available” alpha value. The latter explains why the observations for DISCIPLINE are blank.
Click the button and type away. When editing a group window, the Enter key moves across the row rather than down a column. This lets you enter a table of data an observation at a time rather than one variable after the other; the observation at a time technique is frequently more convenient.
Hint: To change the left-to-right order of series in a group use the menu View/Group Members. You’ll see a list of series in the group. Edit the text—cut-and-paste is useful here—re-arranging the
names into the desired order and click to accept the changes. Alternatively, there’s no law against closing the group window and opening a new one. Sometimes that’s faster.
Identity Noncrisis
An important side effect of thinking of our data as being arranged in a rectangle is that each row has an observation number that identifies each observation. In a group window as above, or in a series window, the id series is called “obs” and appears on the left-hand side of the window. Obs isn’t really a series, in that you can’t access it or manipulate it. It serves to give a name to each observation.
When we set up an Unstructured/Undated workfile, EViews just numbers the observations 1, 2, 3, etc. (In dated workfiles, see below, dates are used for ids rather than sequence numbers.) Rather than calling data for dentistry “observation 1” and data for medicine “observation 2,” it might be a lot more meaningful to label them “dentistry” and “medicine.” EViews lets us specify that one of the existing series—obviously DISCIPLINE is the sensible choice— should be used as the id series.

Identity Noncrisis—33
Changing the id series requires “restructuring” the workfile. This is no big deal: “restructuring” amounts essentially to telling EViews to use an id series. Double-click on Range in the upper pane of the workfile window or choose the menu item
Proc/Structure/Resize Current Page…. Then choose Undated with ID series and fill in the series you want used for the id, as illustrated here.
You’ll notice that the Range field in the workfile window is now marked “(indexed).”
Now if we look at a spreadsheet view of SALARY the rows are labeled with DISCIPLINE in place of an uninformative observation number.

34—Chapter 2. EViews—Meet Data
Hint: If you want to be able to see more or less of the id series in the left-hand column, just grab the column divider and drag it over to the right. All column widths are adjustable in the same way.
Counting Hint: If you want to add the observation number to the label right-click and select ObsID +/-. To return to the original display, just do it again.
Dated Series
Let’s set aside our academic salary example for a bit and talk about more options for the identification series and the parallel options for structuring a workfile.
EViews comes with a rich, built-in knowledge of the calendar. Lots of data—lots and lots of data—is dated at regular intervals. Observations are taken annually, quarterly, monthly, etc. EViews understands a variety of such frequencies. The only difference between creating an undated workfile and a dated workfile is that for an undated workfile you enter the total number of observations, while for a dated workfile you provide a beginning date and an ending date.
Hint: Even when data are measured at regular intervals, measurements are sometimes missing. Not a problem, just leave missing measurements marked NA.

Dated Series—35
Let’s create a couple of workfiles for practice. As a first example, let’s make an annual workfile for the Roosevelt years (Franklin, not Teddy). Use the menu command File/New/Workfile… to bring up the Workfile Create dialog. Fill in the fields as shown.
Note that when the workfile window
pops open, Range shows 1933 to 1945 and that there are 13 observations in the workfile.
A second example. Most national income accounting macro data for the United States is available on a quarterly basis starting in 1947. To set up a quarterly workfile use
File/New/Workfile… and change the drop down menu Date Specification/Frequency: to Quarterly. A new issue arises: what are the formats for specifying dates? Rules for date formats are one of those boring-but-nec- essary details that we’ll put off ’til a boring-but-necessary appendix at the end of the chapter.
Why add a date structure to a workfile? One minor reason is that it saves you the trouble of figuring out that 1947q1 through 2004q4 includes exactly 232 observations. There are two more important reasons:
•An understanding of the calendar is built into many operations, so it pays to tell EViews how your information is dated. Two examples that we’ll look at later: EViews

36—Chapter 2. EViews—Meet Data
will convert between monthly and quarterly data, and will compute elapsed time between two observations in order to compute annualized rates of return.
•EViews uses the id series to label all sorts of stuff, from series windows for editing data, through graphs of variables over time, to recording the sample used for statistical estimation.
Notice how much easier it is to edit data with a meaningful date label (right) and how much more meaning you get out of a plot with the x-axis labeled with a date rather than just an arbitrary observation number (below).
Tips for dating: In addition to the Annual and Quarterly frequencies that we’ve seen, EViews offers a wide range of built-in dated regular frequencies for those of you with dated data: (Multi-year, Annual, Semi-annual, Quarterly, Monthly, Bimonthly, Fortnight, Ten-day, Weekly, Daily - 5 day week, Daily - 7 day week, Daily - custom week, Intraday), and a special frequency (Integer date) which is a generalization of
Unstructured/Undated.
(The Daily – 5 day week and intra-day frequencies are especially useful for Wall Street data; the Daily – 7 day for keeping track of graduate student work hours.)
Dated Irregular
The Dated Irregular workfile structure stands in between the Dated – Regular Frequency and the Unstructured/Undated structures. Each observation has a date attached, but the observations need not be evenly spaced in time. This sort of arrangement is especially useful for financial data, where quotes are available on some days but not on others.