I'm trying to control for both round and skater fixed effects within panel data.
Data: I've attached a picture of the data I'm using below, where rnd is the specific round in a given competition in a given year; skater represents the individual who took part in that round; ntn is where they're from, hctry is whether it took part in their home country; cmptrtj is whether there's a judge of the same country in the judging panel; and tseg is the score they received in that round.
I'm trying to see whether having a compatriot judge will have an impact on tseg however in the model that I'm basing this off of, they used round fixed effects and competitor fixed effects.
To do this I used:
- reg tseg hctry cmptrtj i.nskater i. nrnd (I encoded both rnd and skater as they're string variables)
However I think it might be better to use panel fixed effects with
- xtset nrnd
- xtreg tseg cmptrtj hctry i.nskater, fe
Doing this gives off the same outcome as the previous regression however I'm not sure if I'm doing either correctly and so would appreciate some guidance
.
Data: I've attached a picture of the data I'm using below, where rnd is the specific round in a given competition in a given year; skater represents the individual who took part in that round; ntn is where they're from, hctry is whether it took part in their home country; cmptrtj is whether there's a judge of the same country in the judging panel; and tseg is the score they received in that round.
I'm trying to see whether having a compatriot judge will have an impact on tseg however in the model that I'm basing this off of, they used round fixed effects and competitor fixed effects.
To do this I used:
- reg tseg hctry cmptrtj i.nskater i. nrnd (I encoded both rnd and skater as they're string variables)
However I think it might be better to use panel fixed effects with
- xtset nrnd
- xtreg tseg cmptrtj hctry i.nskater, fe
Doing this gives off the same outcome as the previous regression however I'm not sure if I'm doing either correctly and so would appreciate some guidance
Comment