I'm doing a difference-in-difference analysis to study the effect of removing financial incentives from quality indicators, in primary care clinics.
I have a balanced dataset - for each of 450 clinics, I have an observation for 26 quality indicators, for three years (two indicators are controls, where incentives weren't removed).
Each indicator, and each practice, is likely to have its own 'fixed effect'. (For example, some indicators are harder to achieve; and some practices have more difficult patient populations).
So far, to adjust for indicator and practice fixed effects, I've used the code:
Code:
reg Performance Time##Treated i.Indicator i.Practice
Is it worth using 'xtreg' instead?
I think need to create an 'ID' variable, which combines the practice and indicator (each ID would have an one observation per year). And then do:
'xtreg Performance Time##Treated, fe'
This doesn't however isolate the indicator fixed effect from the practice fixed effect - and the subsequent result is not quite the same as when I use 'reg'.
Can someone suggest a possible alternative? Many thanks.
0 Response to Panel data regression - several dummy variables or xtreg, with more than fixed-effect variable
Post a Comment