Hi,
I am running a panel data with 3000 observations and each student has two subjects recorded.
I would like to run both student and subject fixed effects.
My code was
xtset STU_ID subject
xtreg testscore i.STU_ID i.subject SubjGradeA, fe cluster(STU_ID)
However, stata omitted all the dummy variables for STU_ID due to collinearity.
Does that mean that I do not require i.STU_ID for student fixed effect?
Thanks
Related Posts with Student and Subject Fixed effects
Matrix not found error after just listing the matrixDear All, Sorry for a very lengthy post, but I am trying to explain the problem comprehensively. I a…
How to drop duplicates under certain conditions for a subset of observations?Hi all, I am trying to drop duplicate observations under certain conditions. My data looks something…
difference between predictand predict, xbHi, i know that predict yh, xb gives you a linear prediction using X'b. But how does the command pre…
Reshaping data for tabplotArray Hello, How do I reshape the following data to be able to use the tabplot command? Basically I…
fractional probit with sample selection using CMPHello everyone! I am planning to run a fractional response model with sample selection. I wonder if …
Subscribe to:
Post Comments (Atom)
0 Response to Student and Subject Fixed effects
Post a Comment