Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
st: Subgroup mean imputation
From
Barbara Romano <[email protected]>
To
"[email protected]" <[email protected]>
Subject
st: Subgroup mean imputation
Date
Fri, 15 Nov 2013 16:02:17 +0100
Dear all,
I’d like to contrast the results I get the mi imputation and the old fashioned mean imputation.
I’ve a huge dataset of student test scores with a variable for classroom id.
I used the egen command to create the subgroup mean for each classroom
egen classmean = mean(score), by(CODICE_CLASSE)
this create for each student with the same classroom code, BUT for the the students with a missing value for the score.
I’d like to impute that classroom subgroup mean for the “missing students”.
What should I do?
Thank you very much
Barbara
*
* For searches and help try:
* http://www.stata.com/help.cgi?search
* http://www.stata.com/support/faqs/resources/statalist-faq/
* http://www.ats.ucla.edu/stat/stata/