Panel Data: Stata
1. What is Panel Data? Panel data (longitudinal data) follows the same individuals (firms, countries, etc.) over time. Structure: Two dimensions: id (cross-sectional unit) and time (time period).
Example: | id | year | y | x1 | x2 | |----|------|-----|-----|-----| | 1 | 2020 | 10 | 2 | 5 | | 1 | 2021 | 12 | 3 | 6 | | 2 | 2020 | 15 | 4 | 7 | | 2 | 2021 | 18 | 5 | 8 | Before analysis, tell Stata which variable identifies entities and which identifies time. stata panel data
1. What is Panel Data? Panel data (longitudinal data) follows the same individuals (firms, countries, etc.) over time. Structure: Two dimensions: id (cross-sectional unit) and time (time period).
Example: | id | year | y | x1 | x2 | |----|------|-----|-----|-----| | 1 | 2020 | 10 | 2 | 5 | | 1 | 2021 | 12 | 3 | 6 | | 2 | 2020 | 15 | 4 | 7 | | 2 | 2021 | 18 | 5 | 8 | Before analysis, tell Stata which variable identifies entities and which identifies time.