Econometric Analysis Using Stata

Slides:



Advertisements
Similar presentations
PRE-SCHOOL QUANT WORKSHOP II R THROUGH EXCEL. NEW YORK TIMES INFOGRAPHICS GALARY The Jobless Rate for People Like You Home Prices in Selected Cities For.
Advertisements

EViews Student Version. Today’s Workshop Basic grasp of how EViews manages data Creating Workfiles Importing data Running regressions Performing basic.
Classical Linear Regression Model
Fall 2013Biostat 5110 (Biostatistics 511) Discussion Section Week 4 Sandrine Moutou Medical Biometry I.
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.
Applied Econometrics Second edition
Stata and logit recap. Topics Introduction to Stata – Files / directories – Stata syntax – Useful commands / functions Logistic regression analysis with.
Part 12: Asymptotics for the Regression Model 12-1/39 Econometrics I Professor William Greene Stern School of Business Department of Economics.
1. Overview Brief guide to the display windows and toolbar
Adrián de la Garza Jeremy Green 27 March 2009
Teaching Statistics Using Stata Software Susan Hailpern BSN MPH MS Department of Epidemiology and Population Health Albert Einstein College of Medicine.
I NTRO TO S TATA James Ng Center for Digital Scholarship Hesburgh Libraries.
Computing for Research I Spring 2011 Primary Instructor: Elizabeth Garrett-Mayer Stata Programming February 28.
Computing for Research I Spring 2013 Primary Instructor: Elizabeth Garrett-Mayer Stata Programming February 21.
1 How to Begin Using Stata Lisa Kaltenbach, MS. Biostatistician II Department of Biostatistics Vanderbilt University
Ann Arbor ASA ‘Up and Running’ Series: SPSS Prepared by volunteers of the Ann Arbor Chapter of the American Statistical Association, in cooperation with.
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.
Introduction to Statistical Computing in Clinical Research Biostatistics 212 Course director: Mark Pletcher Teaching Assistant: Lee Zane.
AEB 37 / AE 802 Marketing Research Methods Week 5
Econometric Analysis Using Stata
OLS: Theoretical Review Assumption 1: Linearity –y = x′  +  or y = X  +  ) (where x,  : Kx1) Assumption 2: Exogeneity –E(  |X) = 0 –E(x  ) = lim.
Econometric Analysis Using Stata
WinTR-20 Project Formulation Hydrology Program to
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.
RESEARCH HUB AT THE UNIVERSITY LIBRARIES PENN STATE UNIVERSITY TOUR OF STATISTICAL PACKAGES.
 Overview of SPSS  Interface  Getting Started  Managing Data  Descriptive Statistics  Basic Analysis  Additional Resources.
Stata Workshop #1 Chiu-Hsieh (Paul) Hsu Associate Professor College of Public Health
1 Import NRCC Data February 2015 Obtaining NRCC Rainfall Data and Importing it into WinTR-20.
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.
API-208: Stata Review Session Daniel Yew Mao Lim Harvard University Spring 2013.
STATA Mini Course Fall 2015 Jane Leber Herr Littauer 113 1Stata Mini Course – Spring 2015.
Department of Economics Trinity College Dublin, Ireland Day 2: Labour Market Participation and Income Earning Activities 1.
Introduction to Statistical Computing in Clinical Research Biostatistics 212.
Advanced Stata Workshop FHSS Research Support Center.
Introduction to Enterprise Guide Jennifer Schmidt Rhonda Ellis Cassandra Hall.
VIDEO: INTRODUCTION TO STATA EMBA Data Analysis Professor Timothy Simcoe Boston University School of Management.
STAT 3130 Statistical Methods I Lecture 1 Introduction.
Chapter 5 Editing Text Files. Basic Concept A text editor works on a file buffer that is a memory copy of a disk file The disk file is not updated until.
Getting Started with Stata 2/11/2010 Tom Tomberlin Nealia Khan Learning Technologies Center Harvard Graduate School of Education.
STATA for S-052 M. Shane Tutwiler Your Friendly S-040 Lecturer William Johnston IT Services Harvard Graduate School of Education.
1 Econometrics (NA1031) Lecture 1 Introduction. 2 ”How much” type questions oBy how much a unit change in income affects consumption? oBy how much should.
Data Science and Big Data Analytics Chap 3: Data Analytics Using R
Dr. C. Ertuna1 Required Textbook “Econometrics: By Example " Gujarati Palgrave-Macmillian 2011.
1 Import NOAA Atlas 14 Data June 2015 Obtaining NOAA Atlas 14 Rainfall Data and Importing it into WinTR-20 Presented by: WinTR-20 Development Team.
Hedonic Regressions Price indices, quality control, and valuation of public services.
Today Introduction to Stata – Files / directories – Stata syntax – Useful commands / functions Logistic regression analysis with Stata – Estimation – GOF.
How to Use R and Its Packages. About R Free software For statistical computing and graphics R homepage: We use R
1 Introduction to SQL *Plus Oracle SQL Interface MIS309 Database Systems.
Introduction to CADStat. CADStat and R R is a powerful and free statistical package [
Stata Review Session Economics 1018 Abby Williamson and Hongyi Li November 17, 2006.
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.
Data Analysis using Stata workshop #4 / Kristin Bott reed.edu > K.Bott / Instructional Technology Services Reed College / Portland, OR.
Before the class starts: 1) login to a computer 2) start Stata 13.
Introduction to Eviews Eviews Workshop September 6, :30 p.m.-3:30 p.m.
Metrics Lab Econometric Problems Lab. Import the Macro data from Excel and use first row as variable names Time set the year variable by typing “tsset.
Introduction to STATA Before you get frustrated, imagine processing data by hand and think dearly of STATA.
Before the class starts: Login to a computer Read the Data analysis assignment 1 on MyCourses If you use Stata: Start Stata Start a new do file Open the.
With the support of the LPP programme of the European Union 1 This project has been funded with support from the European Commission. This publication.
Topics Introduction to Stata – Files / directories – Stata syntax – Useful commands / functions Logistic regression analysis with Stata – Estimation –
Before the class starts: Login to a computer Read the Data analysis assignment 1 on MyCourses If you use Stata: Start Stata Start a new do file Open the.
Introduction to R Dr. Satish Nargundkar. What is R? R is a free software environment for statistical computing and graphics. It compiles and runs on a.
Econ 326 Prof. Mariana Carrera Lab Session X [DATE]
Stata Statistical Data Analysis Application Software
Econometrics 704 Emilio Cuilty
Migration and the Labour Market
Evaluation of Public Policy
Presentation transcript:

Econometric Analysis Using Stata Introduction Time Series Panel Data

Stata: Data Analysis and Statistical Software Windows Interface Windows Command, Results, … Pulldown Menu File, Edit, Data, …, Help Operation Interactive Mode Command Menu Batch Mode do files Working Directory

Where is the Data? Stata Dataset Text Data Datasets installed with Stata Datasets from Stata Web site Datasets from courses using Stata Text Data Type your own data Import from Excel, Notebook, GAUSS, …

Stata Dataset sp500.dta Interactive Mode Data Conversion: Dataset to Text Data Analysis Graphics

Interactive Stata File: Example Datasets… Data: Describe data, Describe data in memory… Data: Describe data, Summary statistics… Data: Create or change variables, Create new variables… Graph: Two-way graphs, create… Statistics: Summarizes, tables, and tests, summary and descriptive statistics, Correlation and covariance… Statistics: Linear model and related, Linear regression…

demo1.do * Demo of do file #1 clear sysuse sp500 describe summarize generate volatility=high-low generate lnvolume=ln(volume) graph twoway scatter change volatility correlate change volatility lnvolume regress change volatility lnvolume /* outfile date open high low close volume change /// using "C:\Course12\EC570\stata\sp500.raw", replace */

Text Data gasoline.txt Batch Mode: do files Data Convertion: Text to Dataset Data Analysis Graphics

demo2.do * Demo of do file #2 clear infile year gasexp pop gasp income pnc puc ppt pd pn ps /// using "c:\course13\ec570\data\gasoline.txt" label data "Greene [2008], Table F2.2: The U.S. Gasoline Market" label variable year "Year, 1953-2004" label variable gasexp "Total U.S. gasoline expenditure" label variable pop "U.S. total population in thousands" label variable gasp "Price index for gasoline" label variable income "Per capita disposable income" label variable pnc "Price index for new cars" label variable puc "Price index for used cars" label variable ppt "Price index for public transportation" label variable pd "Aggregate price index for consumer durables" label variable pn "Aggregate price index for consumer nondurables" label variable ps "Aggregate price index for consumer services" describe summarize * save it as a Stata dataset save "c:\course12\ec570\data\gasoline", replace /* generate g=ln(gasexp/pop) // log-per-capita gas consumption generate y=ln(income/pop) // log-per-capita income generate pg=ln(gasp) // log price of gas generate pnew=ln(pnc) // log price of new cars generate pused=ln(puc) // log price of used cars regress g y pg pnew pused */

demo3.do * Demo of do file #3 set more off clear //use "c:\course13\ec570\data\gasoline" use http://web.pdx.edu/~crkl/ec570/data/gasoline describe summarize generate g=ln(gasexp/pop) // log-per-capita gas consumption generate y=ln(income/pop) // log-per-capita income generate pg=ln(gasp) // log price of gas generate pnew=ln(pnc) // log price of new cars generate pused=ln(puc) // log price of used cars regress g y pg pnew pused // dynamic model with lagged variables generate g1=g[_n-1] regress g y pg pnew pused g1 // hypothesis testing test pnew pused test pnew+pused=0 // prediction predict e, residual predict ghat, xb twoway scatter e ghat // structural break

Must-Know Commands System Data Management clear exit log set # delimit net search help Data Management use Infile, infix list describe keep, drop generate, replace, rename save, outfile

Must-Know Commands Data Analysis Statistical Analysis summarize correlate graph twoway, scatter,… hist Statistical Analysis regress predict test dwstat hettest