Panel Data Analysis: A Complete Guide

preview_player
Показать описание
This Lecture deals with panel data analysis which covers descriptive statistics, correlation analysis, multicollinearity diagnostic tests through (VIF), regression analysis through static panel (fixed effect, random effect, Hausman test and their decision criteria) & dynamic panel data analysis (GMM) along with commands of these all tests. Furthermore, it explains how to report results in Excel and Word documents" Following are the commands:
Stata Commands for Panel Data Analysis
1) Import data:
Method 1:
File _____ Import _______ Select first option _______Browse ________ Import first row_____Enter
Method 2:
Select excel file _______ Enter “edit” in Command box ________paste file and then minimize the file

2) To generate panel:
xtset id year ___enter

3) Descriptive statistics
summarize ______enter _________select table, right click and select copy table, then open excel sheet, paste special and click on text and then Ok. Delete extra rows

4) For correlation
pwcorr ________enter

5) For vif (run simple regression)
reg DV IDVs CVs and then enter
vif and enter

6) For Static panel regression
Step 1: xtreg DV IDVs CVs, fe _________enter
Step 2: xtreg DV IDVs CVs, re _________enter
Step 3: estimate store fixed ______ enter
Step 4: estimate store Random _____ enter
Step 5: hausman fixed Random _______ enter
Note: If p-value of Chi square is less than 0.05, select fixed effect results, otherwise random effect results.
7) For Dynamic Panel (GMM)
xtdpdsys DV IVs CVs, lags(2) maxlags(2) twostep artests(2) _______ enter
For Sargan
estat sargan _____ enter (p-value should be insignificant to validate instruments)
For AR1 and AR2
estat abond _____ enter (AR1 significant and AR2 insignificant)
Рекомендации по теме
Комментарии
Автор

Dr sb. thank you for providing this information. This video is very informative. However, in the next video, kindly discuss the nature of static and dynamic data, auto-correlation problems or all basic assumptions in the data and treating such issues in the panel data. we are waiting for your next lecture.

samiurrahman
Автор

This video is very usefull and informative, thank you, Dr. Hunjra

kentiy
Автор

Ma sha Allah, good job.
Sir, I would like to know if we should do stationary test and cointegration test before starting the regression ?

fadeldiande
Автор

Country only 12 and time span 2005 to 2022, which modle and methoad is good to analysis?-

ChiranjibiGautam-ku
Автор

There is a very major mistake in hausman test
You run fixed, then random then you stored two times, actually you store random results two times(you can see the numbers are same) you need to run fixed, store, run random and store, then hausman

krpmwqx
Автор

What if some independent variables are time series( Macroeconomic variables)and some are panel ( Micro economic variables). ?

farhaanrashid
Автор

aoa sir, what if in GMM, p values are insignificant ?

mariafarheen
Автор

Sir, can you make one video for series data too for stata software. Thank you sir.

alishbarahmanullah
Автор

Your chi square value in Hausman test is 0 .. It is not the p value.. There is some problem as you didnt get p value.. So, your interpretation is wrong Try hausman fixed random, sigmamore

dhananjayak