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 on April 23, and its replacement, statalist.org is already up and running.


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

st: RE: combining data on same case from different lines


From   "Nick Cox" <n.j.cox@durham.ac.uk>
To   <statalist@hsphsun2.harvard.edu>
Subject   st: RE: combining data on same case from different lines
Date   Fri, 25 Jun 2010 12:53:30 +0100

A lot easier just to 

. drop if missing(date, publication) 

Please do not send .vcf to Statalist. 

Nick 
n.j.cox@durham.ac.uk 

Marcelo Jenny

could anyone point me to how to resolve the following situation during
the stage of data cleaning.

I have an excert from a data bank with several lines of data per real
world case.
The data table looks like that:

caseid     date                stage             publication
1            01oct1990       indictment
1                                    indictment    Journal, No 3, page
10
2           10may1995       indictment
2                                    indictment    Journal, No 1, page 5

Either the date or the publication reference is missing for each case in
one of the stata case lines.
I'd like to fill in these missing data and then drop the duplicate lines
of data.

*
*   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