I have some data where people go to one group and then to another group-- let's say, doctors and then hospitals. I want to use fixed effects for these two groups separately, so I can get a "hospital" effect and a "doctor" effect. When I use xtset, it won't allow me to do "xtset hospital doctor" because these aren't unique (doctor isn't consistent for hospital). I've tried to xtset hospital and then add a categorical variable into the regression for doctor (i.doctor) but the matsize isn't sufficient. (There are too many hospitals and doctors). Does anyone know how I can have these separate hospital and doctor effect in my regression?
Note that this is distinct from grouping doctor and hospital together and then using xtset on that new group number.
Thanks in advance! Please let me know if I can clarify anything!
Note that this is distinct from grouping doctor and hospital together and then using xtset on that new group number.
Thanks in advance! Please let me know if I can clarify anything!
Comment