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
reshape long errorDear Readers I try to reshape long and get: Code: .. di `"`_vars'"' num0_ num_size00_ num_size10_…
Problem with two merged datasets: time series and panel data relatedHi all, I am new to statalist, and relatively new to stata, so please bear that in mind when replyin…
Hetroskedasticity test Hausman-Taylor estimationDear all, Does anyone know how to perform a heteroskedasticity test (not a graphical one) with pane…
Comparing regressions using dummy variable as categoryHi guys, I'd like to test whether monthly log-return volatility is stronger during recessionary per…
Generate first difference using last available obs if missingDear All, I'm working on longitudinal data that look like the following: Code: * Example generate…
Subscribe to:
Post Comments (Atom)
0 Response to Student and Subject Fixed effects
Post a Comment