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
How to construct children data based on their parents' data?Hi all, I have a household dataset in which respondents' data are in a long layout but their childr…
Year and Industry Fixed Effects in Cross-sectional logit regressionHi Everyone, I would appreciate your help on the below: I am using Stata 17. I have a cross-sectiona…
Error 9901 in Excel export_xlshwritestr(): 9901 Stata returned error export_excel_write_file(): - function returned error expo…
Creating different variables for firm-yearHi Statlist community, I have a dataset where I have different institutional investors for each yea…
Exporting F-Statistics and p-value after ivreg2 commandDear all, I am using Code: ivreg2 command to do my analysis with Stata 15 (IC). However, I need to…
Subscribe to:
Post Comments (Atom)
0 Response to Student and Subject Fixed effects
Post a Comment