Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
STATA - Panel Regressions
1. STATA: Data Analysis Software
STATA
Panel Regressions
www.STATA.org.uk
Step-by Step Screenshot Guides
to help you use STATA
Not affiliated with Stata Corp.
2. Datasets Used in Tutorial
– Datasets in these tutorials are based on examples in:
Stock and Watson (2006)
“Introduction to Econometrics”
– You can obtain all of the datasets used in these tutorials
by downloading a STATA command file from
http://www.stata.org.uk/download-examples.html
3. Outline
– Statistical Analysis
• Panel Regressions
– Open Dataset
– Declare Time and ID Variables
– Fixed Effects Regression
– Random Effects Regression
– Hausman Test
– Challenge
4.
5.
6.
7.
8. Outline
– Statistical Analysis
• Panel Regressions
– Open Dataset
– Declare Time and ID Variables
– Fixed Effects Regression
– Random Effects Regression
– Hausman Test
– Challenge
9.
10.
11.
12. Outline
– Statistical Analysis
• Panel Regressions
– Open Dataset
– Declare Time and ID Variables
– Fixed Effects Regression
– Random Effects Regression
– Hausman Test
– Challenge
13.
14.
15.
16.
17.
18.
19. Outline
– Statistical Analysis
• Panel Regressions
– Open Dataset
– Declare Time and ID Variables
– Fixed Effects Regression
– Random Effects Regression
– Hausman Test
– Challenge
20.
21.
22.
23.
24.
25.
26. Outline
– Statistical Analysis
• Panel Regressions
– Open Dataset
– Declare Time and ID Variables
– Fixed Effects Regression
– Random Effects Regression
– Hausman Test
– Challenge
27.
28.
29.
30.
31. Outline
– Statistical Analysis
• Panel Regressions
– Open Dataset
– Declare Time and ID Variables
– Fixed Effects Regression
– Random Effects Regression
– Hausman Test
– Challenge
32. Panel Regression: Challenge
Challenge
– Estimate panel using beertax, mlda and vmiles
Method
– Repeat panel regression by editing do-file
– Add mlda and vmiles as independent variables
– Estimate fixed effects and store
– Estimate random effects and store
– Conduct Hausman test
33.
34.
35.
36.
37. www.STATA.org.uk
– If you visit www.STATA.org.uk you can download
tutorials on these other topics:
Data Management Statistical Analysis
Importing Data Summary Statistics
Graphs Linear Regressions
Presenting Output Panel Regressions
Merge or Drop Data Time Series Analysis
Instrumental Variables
Probit Analysis