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]

st: missing data


From   Michael Eisenberg <meisenberg713@gmail.com>
To   statalist@hsphsun2.harvard.edu
Subject   st: missing data
Date   Wed, 5 Oct 2011 16:35:48 -0700

Colleagues,

I have a list of data for patients and some subjects have more than
one row.  Unfortunately, the data entry was not perfect so that some
fields that should be the same for each individual (like an exposure)
is not.

subjectid     exposurea      exposureb
1                    43                     bz
1                     .                        .
1                     .                        .

3                     .                        .
3                     .                        .
3                    888                   qx


How can I get all fields to populate with the non missing data so that
it looks like

subjectid     exposurea      exposureb
1                    43                     bz
1                     43                    bz
1                    43                     bz

3                    888                    qx
3                    888                    qx
3                    888                   qx

Thank you in advance.
*
*   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