Bookmark and Share

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]

Re: st: Subgroup mean imputation


From   Fernando Rios Avila <[email protected]>
To   [email protected]
Subject   Re: st: Subgroup mean imputation
Date   Fri, 15 Nov 2013 10:11:26 -0500

What I usually do is to add the following command to what you already have:
egen classmean_imputed = max(classmean), by(CODICE_CLASSE)
HTH.
Fernando

On Fri, Nov 15, 2013 at 10:02 AM, Barbara Romano <[email protected]> wrote:
> 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/

*
*   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/


© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index