Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
From | lydia huang <lydiahsh@yahoo.com.cn> |
To | statalist@hsphsun2.harvard.edu |
Subject | st: do file |
Date | Mon, 8 Mar 2010 18:24:39 +0800 (CST) |
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/