Econometric Analysis Using Stata

Slides:



Advertisements
Similar presentations
IFS DATA ANALYSIS. Go to library Resources you subject Statistics Esds Go into international, then macro and then IMF IFS data base 3. choose quarterly.
Advertisements

Housekeeping: Variable labels, value labels, calculations and recoding
1 Research Methods Lecture 2 The dummies’ guide to STATA Wiji Arulampalam 18/10/2006.
EViews Student Version. Today’s Workshop Basic grasp of how EViews manages data Creating Workfiles Importing data Running regressions Performing basic.
Morbadevi Softwares Work with ease… Ready-Made Garments Management Software Demo By Morbadevi Softwares®2014, All Rights Reserved.
Statistical Methods Lynne Stokes Department of Statistical Science Lecture 7: Introduction to SAS Programming Language.
STATA Introductory manual. QUIZ What are the main OLS assumptions? 1.On average right 2.Linear 3.Predicting variables and error term uncorrelated 4.No.
Apr-15H.S.1Apr-15H.S.1 Stata Introduction, Short v2 Hein Stigum Presentation, data and programs at: courses.
Stata and logit recap. Topics Introduction to Stata – Files / directories – Stata syntax – Useful commands / functions Logistic regression analysis with.
CALIFORNIA HOUSING MARKET FORECAST June California Housing Market Outlook SERIES: CA Housing Market Outlook SOURCE: CALIFORNIA ASSOCIATION OF REALTORS®
1. Overview Brief guide to the display windows and toolbar
Computing for Research I Spring 2011 Primary Instructor: Elizabeth Garrett-Mayer Stata Programming February 28.
STATA TUTORIAL: LAB STATA windows  The command window  The viewer/results window  The review of commands window  The variable window.
1 MADE STATA Introductory manual. 2 MADE QUIZ What are the main OLS assumptions? 1.On average right 2.Linear 3.Predicting variables and error term uncorrelated.
Integrating Access with the Web and with Other Programs.
United States Imports Michael Williams Kevin Crider Andreas Lindal Jim Huang Juan Shan.
MACROECONOMETRICS LAB 5 – SVARs.
GDP Published by: Bureau of Economic Analysis Frequency: Quarterly Period Covered: prior quarter Volatility: Moderate Market significance: very high Web.
Econometric Analysis Using Stata
CALIFORNIA HOUSING MARKET FORECAST April CALIFORNIA HOUSING MARKET OUTLOOK SERIES: CA Housing Market Outlook SOURCE: CALIFORNIA ASSOCIATION OF REALTORS®
Generating new variables and manipulating data with STATA Biostatistics 212 Session 2.
An Introduction into Stata I Prof. Dr. Herbert Brücker University of Bamberg Seminar “Migration and the Labour Market” Session 3, June 9, 2011.
EViews. Agenda Introduction EViews files and data Examining the data Estimating equations.
Getting Started with your data
Econometric Analysis Using Stata
Stata Workshop #1 Chiu-Hsieh (Paul) Hsu Associate Professor College of Public Health
Project organisation in Stata Adrian Spoerri and Marcel Zwahlen Department of Social and Preventive Medicine University of Berne, Switzerland Research.
FactXML Customizing the Equilib results 1.0.
Scottish Social Survey Network: Master Class 1 Data Analysis with Stata Dr Vernon Gayle and Dr Paul Lambert 23 rd January 2008, University of Stirling.
06. Excel Charts. File -> Open -> 06b-datastart.xlsx.
U.S. Economy based on FRED *Some data not updated due to gov’t shutdown in Oct. April 27, 2014 Thank you, Federal Reserve Bank of St. Louis.
Key Data Management Tasks in Stata
Tricks in Stata Anke Huss Generating „automatic“ tables in a do-file.
STATA Mini Course Fall 2015 Jane Leber Herr Littauer 113 1Stata Mini Course – Spring 2015.
STATA: An Introduction Into the Basics Prof. Dr. Herbert Brücker University of Bamberg Seminar “Migration and the Labour Market” May 31, 2012.
A Picture Is Worth A Thousand Words. DAY 7: EXCEL CHAPTER 4 Tazin Afrin September 10,
FIN822 Li1 Welcome to Econometrics. FIN822 Li2 Why study Econometrics? An empirical analysis uses data to test a theory or to estimate a relationship.
Example SPSS Basic Medical Statistics Course October 2010 Wilma Heemsbergen.
Generating new variables and manipulating data with STATA Biostatistics 212 Lecture 3.
GPD and Changes in Price Level Chapter 13, Section 2.
Introduction to Enterprise Guide Jennifer Schmidt Rhonda Ellis Cassandra Hall.
Chapter 13, Section 2 Price Indexes. Constructing a Price Index Used to measure changes in P. over time Created by selecting a base year and a representative.
Getting Started with Stata 2/11/2010 Tom Tomberlin Nealia Khan Learning Technologies Center Harvard Graduate School of Education.
05. Data from Bloomberg Add-in. Launch Bloomberg and Press GO.
Dr. C. Ertuna1 Required Textbook “Econometrics: By Example " Gujarati Palgrave-Macmillian 2011.
Today Introduction to Stata – Files / directories – Stata syntax – Useful commands / functions Logistic regression analysis with Stata – Estimation – GOF.
Economic Data Sources on the Internet Su, Chapter 3.
American Housing Survey Introduction to the Data.
web browsing Manual.
Topics Introduction to Stata – Files / directories – Stata syntax – Useful commands / functions Logistic regression analysis with Stata – Estimation –
Stata: Getting Starting and Being Productive with VA Data Give me six hours to chop down a tree and I will spend the first four sharpening the axe. --Abraham.
Unity Application Generator How Can I… Export variables of a Control module, modify the Initial values and import the list back into UAG.
1 Basic Financial or Economic Data Handling. 2 Changing Indices and Base Changing Frequency (stock vs. flow var.) Nominal vs. Real Logs (linearizing trend.
Stata – be the master Stata. “After I have run my standard commands, what can I do to make my model better (and understand better what is going on)?”
Based on Learning SAS by Example: A Programmer’s Guide Chapters 1 & 2
Introduction to Eviews Eviews Workshop September 6, :30 p.m.-3:30 p.m.
Lecture 11 Introduction to R and Accessing USGS Data from Web Services Jeffery S. Horsburgh Hydroinformatics Fall 2013 This work was funded by National.
Topics Introduction to Stata – Files / directories – Stata syntax – Useful commands / functions Logistic regression analysis with Stata – Estimation –
Project 1 to 3. Project 1 (10 pts) (use the word document to enter results and answers – Save this file as Lname_BUA350_Cohort#_projects#.doc Go to Total.
Dept. of Computer & Information Sciences
Econ 326 Prof. Mariana Carrera Lab Session X [DATE]
Stata Statistical Data Analysis Application Software
PANEL DATA Development Workshop.
Econometrics 704 Emilio Cuilty
ECONOMETRICS ii – spring 2018
Illinois Goal Assessment Program
Estimating the Average Life of Non-Maturity Deposits
Migration and the Labour Market
Presentation, data and programs at:
Evaluation of Public Policy
Presentation transcript:

Econometric Analysis Using Stata Introduction Time Series Panel Data

Time Series Analysis Using Stata Declare time series data and variables tsset Time series operators L.; F.; D.; S. Commands with time series options regress …, if tin(.,.) generate summarize

Example: U.S. GDP Growth gdp2009.txt gdp2009.dta Time series setup Time series operators Time series line plot (graphics) Time series regression

gdp1.do * Read text data file (.txt) and covert it to Stats dataset file (.dta) infile year quarter gdp gdpdef using “\course14\ec572\data\gdp2009.txt" describe summarize label data "U. S. GDP: 1947.1-2013.3" label variable gdp "GDP (billion of current dollars)" label variable gdpdef "Implicit GDP price deflator (year 2009 = 100)" * delete the 1st line of variable names drop in 1 * create a time series dataset generate time=yq(year,quarter) tsset time, quarterly label variable time "Time" drop year quarter * save it as a Stata dataset, if it has not done yet save "\course14\ec572\data\gdp2009"

gdp2.do * use graph to represent the data * a graph is worth of thousand words clear use http://web.pdx.edu/~crkl/ec572/data/gdp2009.dta * is this time series data? tsset d su * generate new variable gen rgdp=100*gdp/gdpdef gen lrgdp=ln(rgdp) gen gq=100*D.lrgdp gen ga=100*(lrgdp-L4.lrgdp) * time series line plots tsline rgdp, name(rgdp) tsline gq ga, name(growth) * time regression reg lrgdp time

Example: SP-500 sp500new.xml Reading from an Excel XML database file Time series (daily) data setup Time series line plot (graphics) Time series analysis

sp500new0.do /* ** Time Series Analysis of U.S. SP500 Stock Market Index ** Latest update: 12/31/2013 ** Retrieve monthly data, converted from daily format */ clear set more off xmluse "\Course14\EC572\data\sp500new.xml", doctype(excel) sheet(Monthly) cells(A2:G769) clear save "\Course14\EC572\data\sp500m", replace gen date=var1 gen vol=var6 gen idx=var7 sort date drop var* gen month=mofd(date) tsset month, monthly gen r=100*(ln(idx)-ln(L.idx)) //gen r=100*(ln(idx)-ln(idx[_n-1])) summarize tsline idx, name(SP500m_INDEX,replace) tsline r, name(SP500m_Returns,replace) * Is IDX stationary? IDX~I(1) * Is R stationary? R~I(0) * ARMA and ARCH structures of R * SP500 Forecasts?