Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
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/