Hi,
I am attempting the estimate of the effect of 3 different drugs on various patient outcomes.
I am estimating a simple panel fixed effects model using xtreg, fe.
My dataset includes three time points and around 300 patients (around 900 observations in total). At baseline all patients do not take any drug, while at both time 1 (after 3 months) and time 2 (after 6 months) some patients take drug 1, others drug 2, and the remaining patients take drug 3. Patients taking a drug (e.g. drug 1) cannot also take other drugs (e.g. drug 2 and 3). So I generate three (mutually exclusive) drug dummies.
When I run my panel data model using the fixed-effects estimator (xtreg, fe), in addition to the three drug dummies (and some other time-varying controls) I also include time dummies for time 1 and time 2 (so that the reference category is the baseline time dummy). However, the time 2 dummy is dropped because the sum of time 1 dummy and time 2 dummy is collinear with the sum of the three drug dummies.
Since, for obvious reasons, I need to keep all three drug dummies in my specification I tried using a time trend instead of the two time dummies also allowing for a non-linear time trend (i.e. squared time trend). This specification is estimated succesfully but I would like to ask you whether this makes any sense to you.
Shouldn't the time trend variable be dropped for the same reason the time 2 dummy is dropped, i.e. perfect collinearity?
Thanks,
Lukas
I am attempting the estimate of the effect of 3 different drugs on various patient outcomes.
I am estimating a simple panel fixed effects model using xtreg, fe.
My dataset includes three time points and around 300 patients (around 900 observations in total). At baseline all patients do not take any drug, while at both time 1 (after 3 months) and time 2 (after 6 months) some patients take drug 1, others drug 2, and the remaining patients take drug 3. Patients taking a drug (e.g. drug 1) cannot also take other drugs (e.g. drug 2 and 3). So I generate three (mutually exclusive) drug dummies.
When I run my panel data model using the fixed-effects estimator (xtreg, fe), in addition to the three drug dummies (and some other time-varying controls) I also include time dummies for time 1 and time 2 (so that the reference category is the baseline time dummy). However, the time 2 dummy is dropped because the sum of time 1 dummy and time 2 dummy is collinear with the sum of the three drug dummies.
Since, for obvious reasons, I need to keep all three drug dummies in my specification I tried using a time trend instead of the two time dummies also allowing for a non-linear time trend (i.e. squared time trend). This specification is estimated succesfully but I would like to ask you whether this makes any sense to you.
Shouldn't the time trend variable be dropped for the same reason the time 2 dummy is dropped, i.e. perfect collinearity?
Thanks,
Lukas
Comment