Hi,
I have a question about the way REGHDFE (by Sergio Correira) and GROUP2HDFE creates mobility groups. I am using Stata14.
From my understanding, the - groupvar - option for REGHDFE stores identifiers for the mobility groups while the - group - option for GROUP2HDFE stores identifiers for the mobility groups. However, when I run these commands, I find that the mobility groups computed by these two commands differ. For instance, when I run
I find that an (i,j) pair that is in the largest mobility group created by group2hdfe (stored in group1) is not in the largest mobility group created by reghdfe (stored by the variable group2). Why is this?
Many thanks,
Nicky
I have a question about the way REGHDFE (by Sergio Correira) and GROUP2HDFE creates mobility groups. I am using Stata14.
From my understanding, the - groupvar - option for REGHDFE stores identifiers for the mobility groups while the - group - option for GROUP2HDFE stores identifiers for the mobility groups. However, when I run these commands, I find that the mobility groups computed by these two commands differ. For instance, when I run
Code:
group2hdfe i j, group(group1) reghdfe y x, absorb(i j) groupvar(group2)
Many thanks,
Nicky