Econ 326 Prof. Mariana Carrera Lab Session X [DATE]

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 Analysis. INTRO Panel Data is where you observe behavior of entities across time. Allows to control for unobservable variables that change.
EViews Student Version. Today’s Workshop Basic grasp of how EViews manages data Creating Workfiles Importing data Running regressions Performing basic.
Managerial Economics in a Global Economy
AMMBR - final stuff xtmixed (and xtreg) (checking for normality, random slopes)
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.
AMMBR from xtreg to xtmixed (+checking for normality, random slopes)
Applied Econometrics Second edition
Toolkit + “show your skills” AMMBR from xtreg to xtmixed (+checking for normality, and random slopes, and cross-classified models, and then we are almost.
Unbalanced Panel Data … and Stata Kuan-Pin Lin Portland State University and WISE, Xiamen University.
Lecture 8 (Ch14) Advanced Panel Data Method
Chapter 11 Autocorrelation.
Xtreg and xtmixed: recap We have the standard regression model (here with only one x): but think that the data are clustered, and that the intercept (c.
1 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.
AMMBR from xtreg to xtmixed (+checking for normality, and random slopes, and cross-classified models, and then we are done in terms of theory)
Some Terms Y =  o +  1 X Regression of Y on X Regress Y on X X called independent variable or predictor variable or covariate or factor Which factors.
Gordon Stringer, UCCS1 Regression Analysis Gordon Stringer.
 Independent X – variables that take on only a limited number of values are termed categorical variables, dummy variables, or indicator variables. 
Simple Linear Regression Analysis
Unit 3b: From Fixed to Random Intercepts © Andrew Ho, Harvard Graduate School of EducationUnit 3b – Slide 1
ICCS 2009 IDB Workshop, 18 th February 2010, Madrid Using the IEA IDB Analyzer Correlations & Regression.
Inference issues in OLS
Carolina Environmental Program UNC Chapel Hill The Analysis Engine – A New Tool for Model Evaluation, Sensitivity and Uncertainty Analysis, and more… Alison.
API-208: Stata Review Session Daniel Yew Mao Lim Harvard University Spring 2013.
Managerial Economics Demand Estimation. Scatter Diagram Regression Analysis.
STATA: An Introduction Into the Basics Prof. Dr. Herbert Brücker University of Bamberg Seminar “Migration and the Labour Market” May 31, 2012.
L3: BIG STATA CONCEPTS Getting started with Stata Angela Ambroz May 2015.
Ch4 Describing Relationships Between Variables. Section 4.1: Fitting a Line by Least Squares Often we want to fit a straight line to data. For example.
Lab 5 instruction.  a collection of statistical methods to compare several groups according to their means on a quantitative response variable  Two-Way.
Regression. Population Covariance and Correlation.
C opyright  2007 by Oxford University Press, Inc. PowerPoint Slides Prepared by Robert F. Brooker, Ph.D.Slide 1 1.
Comparison of different output options from Stata
Today Introduction to Stata – Files / directories – Stata syntax – Useful commands / functions Logistic regression analysis with Stata – Estimation – GOF.
Using SPSS Note: The use of another statistical package such as Minitab is similar to using SPSS.
The General Linear Model. Estimation -- The General Linear Model Formula for a straight line y = b 0 + b 1 x x y.
Chapter 4 Minitab Recipe Cards. Correlation coefficients Enter the data from Example 4.1 in columns C1 and C2 of the worksheet.
Ec 2390: Section 1 Useful STATA commands Jack Willis September 14th, 2015.
Introduction to Eviews Eviews Workshop September 6, :30 p.m.-3:30 p.m.
1 Panel Data Analysis in STATA Binam Ghimire. Learning Objectives  Importing file into STATA  Running panel data regression  Run fixed, random effect.
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.
Multiple Regression Scott Hudson January 24, 2011.
Financial Econometrics Lecture Notes 5
Chapter 14 Introduction to Multiple Regression
Chapter 15 Panel Data Models.
Presenter: Mei-Yun Hsieh Date: 2017/09/05
Advanced Quantitative Techniques
Principles and Worldwide Applications, 7th Edition
Panel Data Models By Mai Thanh, Jin Lulu.
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.
Advanced Quantitative Techniques
QM222 Class 13 Section D1 Omitted variable bias (Chapter 13.)
Econometrics ITFD Week 8.
PANEL DATA Development Workshop.
PANEL DATA 1. Dummy Variable Regression 2. LSDV Estimator
Multiple Regression.
QM222 Class 8 Section A1 Using categorical data in regression
QM222 A1 How to proceed next in your project Multicollinearity
ECONOMETRICS ii – spring 2018
Simple Linear Regression
Economics 20 - Prof. Anderson
Migration and the Labour Market
Simple Linear Regression
Ch. 13. Pooled Cross Sections Across Time: Simple Panel Data.
Eviews Tutorial for Labor Economics Lei Lei
Regression and Categorical Predictors
Ch. 13. Pooled Cross Sections Across Time: Simple Panel Data.
SEM: Step by Step In AMOS and Mplus.
Ordinary Least Square estimator using STATA
Chapter 13 Excel Extension: Now You Try!
Presentation transcript:

Econ 326 Prof. Mariana Carrera Lab Session X [DATE]

Outline

Panel Data Dataset in which behaviors of entities (e.g., individuals, companies, countries) are observed across time. Example:

Setting up panel regressions Declare data to be panel data using xtset command. Use xtline to visualize panel data. xtline delay, overlay http://www.princeton.edu/~otorres/Panel101.pdf

Setting up time series data Declare data to be time data using tsset command. Allows you to use lead and lag operators: L. and F. L.x = x(t-1) L2.x=x(t-2) F.x=x(t+1) F2.x=x(t+2) Two declaration syntaxes: Straight time series data http://www.princeton.edu/~otorres/Panel101.pdf Cross-sectional time series data

Fixed effects models in Stata 3 Stata commands for estimating linear FE models: xi: reg xtreg areg

Fixed effects (xi: reg) Example syntax: Predictor variable Dependent variable xi: tells Stata to allow for factor variables i.variable creates dummies for categorical variable varname reg: basic OLS regression

Fixed effects (xi: reg) Example output N-1 entity-specific intercepts

Fixed effects (xtreg) Example syntax: Fixed effects option

Fixed effects (xtreg) Example output: # of entities identical to xi results

Fixed Effects (areg) Example syntax: absorb(varname) includes variable varname as a series of dummy variables in regression

Fixed Effects (areg) Example output: identical to xi results # of entities

Clustering standard errors Example syntax Accounts for w/in county correlation of error term

Outreg2 (basics) Used to create publication-style tables. Install with: ssc install outreg2 Basic syntax: Can export to word, excel, latex

Replace, append, model titles) Create new file or replace existing one

Use variable labels

Reporting significance levels Add tstat to replace standard errors w/t-statistics

Decimal places Decimal places for SEs Decimal places for coefficients

Showing selected coefficients Use drop() or keep() to select variables Use nocons option to drop Constant from table.

Ordering coefficients Re-order when running regression E.g., to show year above population: To specify ordering for multiple models: Use sortvar() to order rows of table

Adding model stats w/addstat To see what stats are saved by Stata. Write name of statistic r() or e() scalars