Hello, I have a balanced panel data in STATA, with 10 individuals (id) and 5 years (year). For each individual-year I have a variable capturing "compensation" and a variable capturing "performacne". I am interested in saving the extent of performance-based compensation for each individual. Specifically, I want a code that regresses compensation on performance separately for each individual and saves the estimated coefficient as well as P-value. The resulting outcome should contain 10 rows and 3 columns: id, alpha, p-val. I would greatly appreciate your help.
-
Login or Register
- Log in with
Comment