Dear community members,
I have a beginner question.
I have two groups: Control and treatment. It is panel data and I want to test the effects of treatment comparing the two groups.
My issue is that I want to control individual fixed effect as well.
Since fixed effect eliminates dummy variables, I am thinking of using LSDV and adding a dummy variable interacting with independent variables.
The code is like:
xtset id time
xi: reg y I.treatment|x1 I.treatment|x2 i.id, vce(cluster id)
I am wondering if it is okay to do that. I am thinking of trying RE or mixed effect or just presenting results of two groups without the comparison. I would appreciate for any comment.
Thank you.
I have a beginner question.
I have two groups: Control and treatment. It is panel data and I want to test the effects of treatment comparing the two groups.
My issue is that I want to control individual fixed effect as well.
Since fixed effect eliminates dummy variables, I am thinking of using LSDV and adding a dummy variable interacting with independent variables.
The code is like:
xtset id time
xi: reg y I.treatment|x1 I.treatment|x2 i.id, vce(cluster id)
I am wondering if it is okay to do that. I am thinking of trying RE or mixed effect or just presenting results of two groups without the comparison. I would appreciate for any comment.
Thank you.
Comment