
RATS VERSION 7 USER’S GUIDE Estima 1560 Sherman Ave., Suite 510 Evanston, IL 60201 Orders, Sales Inquiries 800–822–8038 Web: www.estima.com General Information 847–864–8772 General E-mail: [email protected] Technical Support 847–864–1910 Sales: [email protected] Fax: 847–864–6221 Technical Support: [email protected] © 2007 by Estima. All Rights Reserved. No part of this book may be reproduced or transmitted in any form or by any means without the prior written permission of the copyright holder. Estima 1560 Sherman Ave., Suite 510 Evanston, IL 60201 Published in the United States of America First Printing: August 2007 Preface Welcome to Version 7 of RATS. In the three years since version 6 was released, we’ve continued our two-pronged approach of making the power and sophistication of RATS available to a wider range of users through the addition and improvement of “wiz- ards”, while simultaneously increasing that power and sophistication for our existing user base. Five years ago, we began a project of implementing (all) the worked examples from a wide range of textbooks. These have included everything from introductory econo- metrics and time series books to graduate level books covering almost the full range of modern econometrics. More recently, we’ve added replication files for a number of important published papers. Our experience with this (over 1000 running examples) has led to great improvements in the program. We’re grateful to Kit Baum, Tim Bollerslev, Chris Brooks, Kai Carstensen, Richard Davis, Steve De Lurgio, Frank Diebold, Jordi Gali, Bill Greene, Bruce Hansen, Jim Hamilton, Fumio Hayashi, Timo Teräsvirta, Ruey Tsay, Harald Uhlig, Marno Verbeek, Mark Watson and Jeff Woold- ridge for their help in providing data and programs, and checking results. The new documentation includes more and better examples. The chapters of the User’s Guide which have seen the most work are 6 (Hypothesis Tests), 10 (Vector Autoregressions), 12 (Special Models) and 13 (Simulations and Bootstrapping). Chapter 13, in particular, has been almost entirely rewritten to bring it up-to-date with the fast-moving branch of computationally-intensive statistics. Thanks to all those in the RATS community who have contributed ideas, suggestions and procedures for others to use. Special thanks go to Walter Enders for writing the popular e-book, The RATS Programming Language, Rob Trevor for setting up and maintaining the RATS discussion list, and to Paco Goerlich and Norman Morin for the numerous procedures they’ve written. Jonathan Dennis from the University of Copenhagen (the principal programmer of the CATS program) had a major role in designing and refining the REPORT and DBOX instructions. Chris Sims, as always, had a special role in influencing the direction of our coverage of time series. John Geweke has provided very helpful discussions on Bayesian methods. Tom Maycock has kept the reference manual up-to-date through six interim versions between 6.0 and 7.0, while handling the bulk of the technical support questions and maintaining our extensive web site. To say that he’s invaluable would be an under- statement. I would also like to thank my wife Robin and daughters Jessica and Sarah for their patience, and Jessica, in particular, for her work on the layout of Macintosh dialog boxes. Thomas A. Doan August 2007 Table of Contents Preface ............................................................................................................................. iii 1. Basics—An Introduction to RATS 1 1.0 Basic Operating Instructions ................................................................................... 2 1.1 Getting Started: An Example ................................................................................... 3 1.1.1 Describing the Data to RATS ...................................................................... 7 1.1.2 Reading In the Data .................................................................................. 10 1.1.3 Computing Statistics .................................................................................. 13 1.1.4 Displaying the Data ................................................................................... 16 1.1.5 Data Transformations and Creating New Series ....................................... 17 1.1.6 Graphing the Data ..................................................................................... 20 1.1.7 Estimating Regressions ............................................................................ 25 1.1.8 Hypothesis Testing .................................................................................... 31 1.1.9 Fitted Values and Forecasting ................................................................... 34 1.1.10 Scalar and Matrix Computations ............................................................... 36 1.2 Learning More About RATS .................................................................................. 38 1.3 More About Reading Data ..................................................................................... 39 1.4 More About Regressions and Estimations ............................................................ 42 1.5 Non-Linear Estimation ........................................................................................... 45 1.6 More About Forecasting ........................................................................................ 47 1.7 More on Data Transformations ............................................................................. 48 1.8 Arithmetic Expressions .......................................................................................... 52 1.9 Conditional Statements and Loops ....................................................................... 56 1.10 Using PROCEDURE and FUNCTION................................................................... 58 1.11 RATS Instructions: Syntax .................................................................................... 60 1.12 More on Entry Ranges .......................................................................................... 64 1.13 Error Messages ..................................................................................................... 66 2. Dealing with Data 69 2.1 The Tools .............................................................................................................. 70 2.2 Where Are Your Data Now? .................................................................................. 72 2.3 Changing Data Frequencies ................................................................................. 76 2.4 Missing Data ......................................................................................................... 78 2.5 RATS Format ........................................................................................................ 81 2.6 Spreadsheet and Delimited Text Formats ............................................................. 85 2.7 Database Formats, ODBC, and SQL .................................................................... 90 2.8 Text Files: Free Format ......................................................................................... 92 2.9 Text Files: FORTRAN Format ............................................................................... 95 2.10 Haver Analytics and Other Commercial Databases .............................................. 99 2.11 FAME Format Databases .................................................................................... 100 Introduction 2.12 PORTABLE Format ............................................................................................. 102 2.13 Binary Data ......................................................................................................... 103 2.14 File Handling Tips and Tricks .............................................................................. 104 3. Graphics 107 3.1 Graphics .............................................................................................................. 108 3.2 Displaying Graphs on the Screen ....................................................................... 109 3.3 Saving and Opening Graphs ............................................................................... 110 3.4 Printing Graphs ................................................................................................... 112 3.5 Preparing for Publication ..................................................................................... 113 3.6 Labeling Graphs .................................................................................................. 117 3.7 Keys (Legends) ................................................................................................... 120 3.8 Overlay (Two-Scale or Two-Style) Graphs.......................................................... 121 3.9 Multiple Graphs on a Page .................................................................................. 123 3.10 GRTEXT—Adding Text to Graphs ...................................................................... 126 3.11 Graphing Functions ............................................................................................. 127 3.12 Contour Graphs................................................................................................... 128 3.13 Miscellaneous Topics .......................................................................................... 129 4. Scalars, Matrices and Functions 135 4.1 Working with Scalars..........................................................................................
Details
-
File Typepdf
-
Upload Time-
-
Content LanguagesEnglish
-
Upload UserAnonymous/Not logged-in
-
File Pages650 Page
-
File Size-