Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down at the end of May, and its replacement, statalist.org is already up and running.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

re: Re: st: data management question


From   "Airey, David C" <david.airey@vanderbilt.edu>
To   "statalist@hsphsun2.harvard.edu" <statalist@hsphsun2.harvard.edu>
Subject   re: Re: st: data management question
Date   Fri, 22 Apr 2011 19:29:46 -0500

.

I tried replacing 2004 with missing, so the mean using egen from 2001-2003 would be filled in that year without including that year. Thanks for the other tips.

> No; apart from the fact that you need -egen- to do this, this includes
> the values for 2004 in the average, which is not what is wanted. The
> -replace- will thus make no difference.
> 
> Nick



*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/


© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index