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, 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" <>
To   <>
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. 


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

© Copyright 1996–2016 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index