Hi,
I am trying to run a diff-in-diff to determine the impact of owning television on various outcomes. The data set is a panel and consists of 2 rounds.
I have a treated dummy taking value 1 if the tv was owned in both the survey rounds and 0 otherwise
Time dummy taking value 1 if the observation is in the second survey and otherwise
did variable is an interaction term between the time dummy and treated dummy.
I am running the following regression:
However, treated dummy gets omitted due to collinearity. I cannot understand how can it be corrected or is this normal for this study.
I am trying to run a diff-in-diff to determine the impact of owning television on various outcomes. The data set is a panel and consists of 2 rounds.
I have a treated dummy taking value 1 if the tv was owned in both the survey rounds and 0 otherwise
Time dummy taking value 1 if the observation is in the second survey and otherwise
did variable is an interaction term between the time dummy and treated dummy.
I am running the following regression:
Code:
areg contraceptive_usage treated time_dummy did, absorb(id1)
Code:
* Example generated by -dataex-. To install: ssc install dataex clear input float id1 byte treated float(time_dummy did) 1 . 0 . 1 . 1 . 2 0 0 0 2 0 1 0 3 0 0 0 3 0 1 0 4 0 0 0 4 0 1 0 5 1 0 0 5 1 1 1 6 0 0 0 6 0 1 0 7 0 0 0 7 0 1 0 8 0 0 0 8 0 1 0 9 0 0 0 9 0 1 0 10 0 0 0 10 0 1 0 11 0 0 0 11 0 1 0 12 0 0 0 12 0 1 0 13 1 0 0 13 1 1 1 14 0 0 0 14 0 1 0 15 1 0 0 15 1 1 1 16 0 0 0 16 0 1 0 17 0 0 0 17 0 1 0 18 0 0 0 18 0 1 0 19 0 0 0 19 0 1 0 20 0 0 0 20 0 1 0 21 0 0 0 21 0 1 0 22 0 0 0 22 0 1 0 23 0 0 0 23 0 1 0 24 0 0 0 24 0 1 0 25 0 0 0 25 0 1 0 26 0 0 0 26 0 1 0 27 0 0 0 27 0 1 0 28 1 0 0 28 1 1 1 29 0 0 0 29 0 1 0 30 0 0 0 30 0 1 0 31 1 0 0 31 1 1 1 32 1 0 0 32 1 1 1 33 0 0 0 33 0 1 0 34 1 0 0 34 1 1 1 35 1 0 0 35 1 1 1 36 0 0 0 36 0 1 0 37 0 0 0 37 0 1 0 38 0 0 0 38 0 1 0 39 0 0 0 39 0 1 0 40 0 0 0 40 0 1 0 41 0 0 0 41 0 1 0 42 0 0 0 42 0 1 0 43 0 0 0 43 0 1 0 44 0 0 0 44 0 1 0 45 0 0 0 45 0 1 0 46 1 0 0 46 1 1 1 47 0 0 0 47 0 1 0 48 1 0 0 48 1 1 1 49 0 0 0 49 0 1 0 50 0 0 0 50 0 1 0 end
Comment