1 Panel Data Analysis in STATA Binam Ghimire. Learning Objectives  Importing file into STATA  Running panel data regression  Run fixed, random effect.

Slides:



Advertisements
Similar presentations
Introduction Describe what panel data is and the reasons for using it in this format Assess the importance of fixed and random effects Examine the Hausman.
Advertisements

PANEL DATA 1. Dummy Variable Regression 2. LSDV Estimator
Panel Data Models Prepared by Vera Tabakova, East Carolina University.
1 Cross-sectional estimation in STATA by Binam Ghimire.
Tests of Significance for Regression & Correlation b* will equal the population parameter of the slope rather thanbecause beta has another meaning with.
Toolkit + “show your skills” AMMBR from xtreg to xtmixed (+checking for normality, and random slopes, and cross-classified models, and then we are almost.
C 3.7 Use the data in MEAP93.RAW to answer this question
Forecasting Using the Simple Linear Regression Model and Correlation
Lecture 8 (Ch14) Advanced Panel Data Method
Chapter 14, part D Statistical Significance. IV. Model Assumptions The error term is a normally distributed random variable and The variance of  is constant.
Chapter 11 Autocorrelation.
1 FE Panel Data assumptions. 2 Assumption #1: E(u it |X i1,…,X iT,  i ) = 0.
8. Heteroskedasticity We have already seen that homoskedasticity exists when the error term’s variance, conditional on all x variables, is constant: Homoskedasticity.
Notice R 2 and compare to FE in next regression. Areg constructs within Panel means rather than Estimate LSDV model ID is the variable That identifies.
Chapter Topics Types of Regression Models
Business Statistics - QBM117 Interval estimation for the slope and y-intercept Hypothesis tests for regression.
© 2000 Prentice-Hall, Inc. Chap Forecasting Using the Simple Linear Regression Model and Correlation.
12 Autocorrelation Serial Correlation exists when errors are correlated across periods -One source of serial correlation is misspecification of the model.
OPIM 303-Lecture #8 Jose M. Cruz Assistant Professor.
Specification Error I.
QMS 6351 Statistics and Research Methods Regression Analysis: Testing for Significance Chapter 14 ( ) Chapter 15 (15.5) Prof. Vera Adamchik.
1 1 Slide © 2008 Thomson South-Western. All Rights Reserved Slides by JOHN LOUCKS St. Edward’s University.
Random Regressors and Moment Based Estimation Prepared by Vera Tabakova, East Carolina University.
Copyright © 2009 Cengage Learning 15.1 Chapter 16 Chi-Squared Tests.
Copyright © 2014 McGraw-Hill Education. All rights reserved. No reproduction or distribution without the prior written consent of McGraw-Hill Education.
Example (which tire lasts longer?) To determine whether a new steel-belted radial tire lasts longer than a current model, the manufacturer designs the.
Lesson Multiple Regression Models. Objectives Obtain the correlation matrix Use technology to find a multiple regression equation Interpret the.
PY 603 – Advanced Statistics II TR 12:30-1:45pm 232 Gordon Palmer Hall Jamie DeCoster.
Example x y We wish to check for a non zero correlation.
1 1 Slide The Simple Linear Regression Model n Simple Linear Regression Model y =  0 +  1 x +  n Simple Linear Regression Equation E( y ) =  0 + 
11.2 – Chi-Square: Goodness of Fit. "Does the current distribution "fit" a past distribution?" H o : The percentage distribution for job incentives is.
Significance Tests for Regression Analysis. A. Testing the Significance of Regression Models The first important significance test is for the regression.
1 In the Monte Carlo experiment in the previous sequence we used the rate of unemployment, U, as an instrument for w in the price inflation equation. SIMULTANEOUS.
Jump to first page Inferring Sample Findings to the Population and Testing for Differences.
Term Project Math 1040-SU13-Intro to Stats SLCC McGrade-Group 4.
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.
Chapter 13 Section 2. Chi-Square Test 1.Null hypothesis – written in words 2.Alternative hypothesis – written in words – always “different” 3.Alpha level.
Chapter 11: Categorical Data n Chi-square goodness of fit test allows us to examine a single distribution of a categorical variable in a population. n.
1 1 Slide IS 310 – Business Statistics IS 310 Business Statistics CSU Long Beach.
Advanced Data Analysis – Hypothesis Testing Hypothesis Tests  z-test Used to test hypotheses that a mean is greater (less) than or equal to some value.
Financial Econometrics Lecture Notes 5
Inference about the slope parameter and correlation
Econ 326 Prof. Mariana Carrera Lab Session X [DATE]
Vera Tabakova, East Carolina University
Chapter 15 Panel Data Models.
Stat 251 (2009, Summer) Final Lab TA: Yu, Chi Wai.
REGRESSION DIAGNOSTIC III: AUTOCORRELATION
Vera Tabakova, East Carolina University
15.5 The Hausman test For the random effects estimator to be unbiased in large samples, the effects must be uncorrelated with the explanatory variables.
Esman M. Nyamongo Central Bank of Kenya
Statistical Quality Control, 7th Edition by Douglas C. Montgomery.
PANEL DATA Development Workshop.
PANEL DATA REGRESSION MODELS
Inference for Regression
PANEL DATA 1. Dummy Variable Regression 2. LSDV Estimator
Chapter 15 Panel Data Analysis.
Non Linear Functions in Panel Data Models
Multiple Regression Models
Inference about Two Means: Independent Samples
Migration and the Labour Market
Tutorial 1: Misspecification
Pemeriksaan Sisa dan Data Berpengaruh Pertemuan 17
Esman M. Nyamongo Central Bank of Kenya
Financial Econometrics Fin. 505
Section 8.2 Day 2.
Introduction to Regression
Ordinary Least Square estimator using STATA
Presentation transcript:

1 Panel Data Analysis in STATA Binam Ghimire

Learning Objectives  Importing file into STATA  Running panel data regression  Run fixed, random effect test and use of Hausman to test which (among fixed and random) is better 2

Importing Data from Excel into Stata :Theory  Papers used: Rajan and Zingles (1995) and Charles Amo Yartey (20XX) – Capital Structure and the Financing unquoted companies in Africa, Evidence from Ghana  Equation can be found in page 1452, Rajan and Zingles (1995) 3

Importing Data from Excel into Stata :Theory  File to practice  Find the file (file: named:EDITED_REGDATA) Note: The name of the countries have been given numbers Compensation (Both panel and time variables need to be numeric from STATA)  To import the data in stata: copy and paste from excel to data editor inside data (Or you can import the file from excel, Check various techniques of importing data into STATA) 4

Importing Data from Excel into Stata 1. Inform that your file is a panel data  Now you need to tell STATA that your file is a panel data. For this you need to use the command  Xtset code years  tsset code years, yearly (worked for 8.1 version)  Now run the pooled regression estimates using the regress command: . regress debtra firmsz prtabty tgiblity mbv  Note here we have followed (Rajan and Zingles 1995, page 1452) 5

Importing Data from Excel into Stata 2. Pooled estimate  Now run the pooled regression estimates using the regress command:. regress debtra firmsz prtabty tgiblity mbv Note here we have followed (Rajan and Zingles 1995, equation, p. 1452,) 6

Importing Data from Excel into Stata 2. Pooled estimate 7

Importing Data from Excel into Stata : Fixed Effect Estimate  The command for the fixed effect is :. xtreg debtra firmsz prtabty tgiblity mbv, fe 8

Importing Data from Excel into Stata : Fixed Effect Estimate 9

Importing Data from Excel into Stata 3. Hausman Test  Store it (we want to test hausman to see which is good)  Command to store is:. estimates store random 10

Importing Data from Excel into Stata 4. Random Test  The command is  xtreg debtra firmsz prtabty tgiblity mbv, re 11

Importing Data from Excel into Stata 4. Random Test 12

Importing Data from Excel into Stata 4. Storing  Again store is . estimates store random 13

What should I use: Fixed Effects or Random Effects?  A Hausman Test Approach  In a simple equation y it = x it b + a i + u it Hausman (1978) suggested a test to check whether the individual effects (a i ) are correlated with the regressors (X it ):  Under the Null Hypothesis: Orthogonality, i.e., no correlation between individual effects and explanatory variables. Both random effects and fixed effects estimators are consistent, but the random effects estimator is efficient, while fixed effects is not 14

What should I use: Fixed Effects or Random Effects?  Ho hypothesis is that estimates by random effect are not different from those from fixed effects. Therefore they are consistent and random effects estimators should be preferred.  Under the Alternative Hypothesis: Individual effects are correlated with the X's. In this case, random effects estimator is inconsistent, while fixed effects estimator is consistent and efficient.  The H1 hypothesis states that estimates by random effects are different from those of fixed effects. Therefore they are not consistent and the random effect estimators are not appropriate. 15

What should I use: Fixed Effects or Random Effects?  After storing the results of fixed and random, the command in STATA is  hausman fixed random 16

What should I use: Fixed Effects or Random Effects?  So, based on the test above, we can see that the tests statistic (25.82) is greater than the critical value of a Chi-squared (4df, 5%) = Null hypothesis rejected. Fixed effects preferred. 17

18 Thank You