Question about two main effects and their interactions in panel data
- Data structure
| Firm | Year | DV | Iv1 | Iv2 | Control |
| 1 | 2001 | 0.2 | 0.1 | 0.2 | .. |
| 1 | 2002 | 0.3 | 0.3 | 0.2 | .. |
| 1 | 2003 | 0.1 | 0.2 | 0.3 | .. |
| 2 | 2002 | 0.4 | 0.5 | 0.1 | .. |
| 2 | 2003 | 0.5 | 0.4 | 0.2 | .. |
| 3 | 2001 | 0.2 | 0.1 | 0.3 | .. |
| 3 | 2002 | 0.1 | 0.4 | 0.5 | .. |
| 3 | 2003 | 0.4 | 0.2 | 0.1 | .. |
| ... |
- Describe Data
- Iv1 = “std_GLF”
- Iv2 = “std_GF2”
- DV = “RDIntensity”
- Analysis Purpose
- To analysis the effect of Iv1 on DV
- To analysis the effect of Iv2 on DV
- To analysis the interactive effect of lv1 and Iv2 on DV
- Current Stata Practice
- xtreg RDIntensity std_GLF control1 control2 control3 control4 control5 ,fe
- xtreg RDIntensity std_GF2 control1 control2 control3 control4 control5 ,fe
- xtreg RDIntensity c.Iv2##c.Iv2 control1 control2 control3 control4 control5 ,fe
- Results
a.
b.c. - Questions
- Did I conduct correct analysis?
- How could I interpret the result?
- If I code the Iv1 and Iv2 into “high” and “low” factorial variables, with such panel data structure, how could I perform a “ANOVA like” analysis to see the interaction of two main effects?
