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: AW: do file


From   "Martin Weiss" <martin.weiss1@gmx.de>
To   <statalist@hsphsun2.harvard.edu>
Subject   st: AW: do file
Date   Mon, 8 Mar 2010 11:29:28 +0100

<> 



What does "doubled" mean? Doubled in value or twice present where there was only one entry previously? Try to find out what happened in the -merge-r by typing -ta _merge-...



HTH
Martin


-----Ursprüngliche Nachricht-----
Von: owner-statalist@hsphsun2.harvard.edu [mailto:owner-statalist@hsphsun2.harvard.edu] Im Auftrag von lydia huang
Gesendet: Montag, 8. März 2010 11:25
An: statalist@hsphsun2.harvard.edu
Betreff: st: do file

Dear Statalist,
is there any thing wrong with the following do-file:
/* sort and save the using data*/
cd H:\my\2007
use written, clear
sort patient_id
save, replace

/* sort the master data*/
use 13, clear
sort patient_id

/* merge based on "patient_id" and save*/
merge patient_id using written
save final07, replace


i don't know why, but all the observations in the final07 have doubled.Why has this happened? what can i do?
Best wishes
Lydia


      


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


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