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]

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–2017 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index