Dear everyone,
My question dances on the border between a STATA question and a question regarding econometric understanding. I hope you can help me, but if the issue is tilting too far to the econometric side and away from STATA for this forum, I apologize and will try to take my question elsewhere.
I am using STATA/SE 18 and am facing issues related to the formula used by the xtreg, fe command.
My discrete dependent variable is coded from 0 to 10. My main explanatory variable is a 0/1 dummy that describes whether someone is part of a group (= member_of_group). Within the group, there are people who joined the group after not being a member and never left and people who left the group after being a member and never joined again. I kicked everyone who joined AND left the group at some point out. In other words, only those who joined once, left once, or never changed their status remain in the sample.
The groups I focus on then become:
group_joiner = 1 if joined and never left (leaver and those who never changed group membership status = 0)
group_leaver = 1 if left and never joined (joiner and those who never changed group membership status = 0)
I proceed to use FE as follows:
xtreg dep_var member_of_group controls if group_joiner == 1, fe cluster(pid)
xtreg dep_var member_of_group controls if group_joiner == 0, fe cluster(pid)
xtreg dep_var member_of_group controls if group_leaver == 1, fe cluster(pid)
xtreg dep_var member_of_group controls if group_leaver == 0, fe cluster(pid)
By my understanding, I have made a logical mistake here in assuming I needed the third and fourth line of the code. Because the fixed effects beta for the main explanatory variable member_of_group of group_joiner = 0 should exactly be equal to the value of member_of_group if group_leaver = 1 and vice versa. By my understanding, this is because the only variation should come from those who joined once or left once, but those who always remained in the group should not matter. But the variable member_of_group differs for all four analyses.
The respective betas for member_of_group become the same though,as soon as I take all controls out of my regression.
When I look at the xtreg manual, I see that the code depicted on page 28 includes the overall sample's average for both the dependent and the independent variables, and I assume that, therefore, those who never changed their member_of_group status may have an influence. But why does the relationship change once I throw the controls out of my model? Does that hint at a correlation between my main explanatory variable and at least one of the controls? The formula looks as follows:


I would be happy about some guidance related to this matter, as it may change how I interpret fixed effects results in STATA.
Thank you very much.
My question dances on the border between a STATA question and a question regarding econometric understanding. I hope you can help me, but if the issue is tilting too far to the econometric side and away from STATA for this forum, I apologize and will try to take my question elsewhere.
I am using STATA/SE 18 and am facing issues related to the formula used by the xtreg, fe command.
My discrete dependent variable is coded from 0 to 10. My main explanatory variable is a 0/1 dummy that describes whether someone is part of a group (= member_of_group). Within the group, there are people who joined the group after not being a member and never left and people who left the group after being a member and never joined again. I kicked everyone who joined AND left the group at some point out. In other words, only those who joined once, left once, or never changed their status remain in the sample.
The groups I focus on then become:
group_joiner = 1 if joined and never left (leaver and those who never changed group membership status = 0)
group_leaver = 1 if left and never joined (joiner and those who never changed group membership status = 0)
I proceed to use FE as follows:
xtreg dep_var member_of_group controls if group_joiner == 1, fe cluster(pid)
xtreg dep_var member_of_group controls if group_joiner == 0, fe cluster(pid)
xtreg dep_var member_of_group controls if group_leaver == 1, fe cluster(pid)
xtreg dep_var member_of_group controls if group_leaver == 0, fe cluster(pid)
By my understanding, I have made a logical mistake here in assuming I needed the third and fourth line of the code. Because the fixed effects beta for the main explanatory variable member_of_group of group_joiner = 0 should exactly be equal to the value of member_of_group if group_leaver = 1 and vice versa. By my understanding, this is because the only variation should come from those who joined once or left once, but those who always remained in the group should not matter. But the variable member_of_group differs for all four analyses.
The respective betas for member_of_group become the same though,as soon as I take all controls out of my regression.
When I look at the xtreg manual, I see that the code depicted on page 28 includes the overall sample's average for both the dependent and the independent variables, and I assume that, therefore, those who never changed their member_of_group status may have an influence. But why does the relationship change once I throw the controls out of my model? Does that hint at a correlation between my main explanatory variable and at least one of the controls? The formula looks as follows:
I would be happy about some guidance related to this matter, as it may change how I interpret fixed effects results in STATA.
Thank you very much.
Comment