Some years ago, I came across a method to retain time-invariant dummy variables (those that remain constant for each observation over the entire period) in a fixed-effects regression. This method involves applying the following transformation:
obs year duco(original_dummy) ducoa(Transformed_dummy)
1 2002 1 1
1 2003 1 2
1 2004 1 3
1 2005 1 4
1 2006 1 5
1 2007 1 6
2 2002 1 1
2 2003 1 2
2 2004 1 3 ...
Have you ever heard of this method? would it be correct? Apparently, when applying the within-groups (WG) transformation —which includes, among other steps, taking differences— these values are transformed into a constant (1). This allows the OLS regression of the WG-transformed variables to retain the time-invariant dummies. I would appreciate any opinions or insights about this transformation.
Thanks for any help/advice
obs year duco(original_dummy) ducoa(Transformed_dummy)
1 2002 1 1
1 2003 1 2
1 2004 1 3
1 2005 1 4
1 2006 1 5
1 2007 1 6
2 2002 1 1
2 2003 1 2
2 2004 1 3 ...
Have you ever heard of this method? would it be correct? Apparently, when applying the within-groups (WG) transformation —which includes, among other steps, taking differences— these values are transformed into a constant (1). This allows the OLS regression of the WG-transformed variables to retain the time-invariant dummies. I would appreciate any opinions or insights about this transformation.
Thanks for any help/advice
Comment