I have the following regression model:
reg mathclass pastmathscores gender race ses
mathclasss represents the mean of a given math class. I am specifically interested in differences between English Only (EO), RFEP (Reclassified Fluent English Proficient) and English language learners (ELL). These are language classification labels based on student's English proficiency and each student is either an EO, RFEP or ELL. My advisor said "I think that one thing that might be interesting is to run a model that predicts math course peers based on everything but language classification, save the residuals and then plot them by language status. That’ll give you a way to visualize the under- and over- placement of ELLs."
I did the following:
reg mathclass pastmathscores gender race ses
rvfplot, yline(0)
But I would like to plot the residuals by language status. Can someone explain how I can plot residuals by language classification? I have tried the following but nothing has worked:
1. by langclass: rvfplot, yline(0)
2. rvfplot if langclass==1, yline(0)
3. rvfplot by(langclass), yline(0)
I am using Stata 13 Windows 7.
Thanks
reg mathclass pastmathscores gender race ses
mathclasss represents the mean of a given math class. I am specifically interested in differences between English Only (EO), RFEP (Reclassified Fluent English Proficient) and English language learners (ELL). These are language classification labels based on student's English proficiency and each student is either an EO, RFEP or ELL. My advisor said "I think that one thing that might be interesting is to run a model that predicts math course peers based on everything but language classification, save the residuals and then plot them by language status. That’ll give you a way to visualize the under- and over- placement of ELLs."
I did the following:
reg mathclass pastmathscores gender race ses
rvfplot, yline(0)
But I would like to plot the residuals by language status. Can someone explain how I can plot residuals by language classification? I have tried the following but nothing has worked:
1. by langclass: rvfplot, yline(0)
2. rvfplot if langclass==1, yline(0)
3. rvfplot by(langclass), yline(0)
I am using Stata 13 Windows 7.
Thanks
Comment