Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: Reshape from wide to long with some missing observations


From   "Sayer, Bryan" <BSayer@s-3.com>
To   "@StataList (E-mail)" <statalist@hsphsun2.harvard.edu>
Subject   st: Reshape from wide to long with some missing observations
Date   Mon, 30 Sep 2002 16:52:18 -0400

I have a wide dateset of individual subjects with up to six exams.  I am
reshaping to long form, but I only want to include those exams with actual
data (it seems that some inconsiderate subjects died before the end of the
study...).  Anyway, is there an option to only include in the output
observations that have data for varlist that I am missing?  If not, what is
a good solution for dropping the observations with missing data?

Thanks!

Bryan Sayer
Statistician, SSS Inc.
bsayer@s-3.com
*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   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   |   What's new   |   Site index