I have research data consisting of:
When I analyze using DID, I get the following error:
didregress (Pengetahuan_Istri) (Treatment), group(Id) time(Time)
note: Treatment omitted because of collinearity.
model is not identified
The treatment variable Treatment was omitted because of collinearity.
r(198);
I also tried xtset, but the error remains:
xtset Id Time
Panel variable: Id (strongly balanced)
Time variable: Time, 0 to 2
Delta: 1 unit
xtdidregress (Pengetahuan_Istri) (Treatment), group(Id) time(Time)
note: Treatment omitted because of collinearity.
model is not identified
The treatment variable Treatment was omitted because of collinearity.
r(198);
Do you have any suggestions on what I should do?
- Treatment: 1 intervention, 0 control
- Time: 0 pre, 1 post1, 2 post2
- Id: Respondent Id, total respondents are 60 with 3 time points resulting in 3*60 IDs.
- Knowledge: knowledge score
When I analyze using DID, I get the following error:
didregress (Pengetahuan_Istri) (Treatment), group(Id) time(Time)
note: Treatment omitted because of collinearity.
model is not identified
The treatment variable Treatment was omitted because of collinearity.
r(198);
I also tried xtset, but the error remains:
xtset Id Time
Panel variable: Id (strongly balanced)
Time variable: Time, 0 to 2
Delta: 1 unit
xtdidregress (Pengetahuan_Istri) (Treatment), group(Id) time(Time)
note: Treatment omitted because of collinearity.
model is not identified
The treatment variable Treatment was omitted because of collinearity.
r(198);
Do you have any suggestions on what I should do?
Comment