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: drop multiple observations which are strings


From   Shubhabrata Mukherjee <joy_stat@yahoo.com>
To   stata forum <statalist@hsphsun2.harvard.edu>
Subject   st: drop multiple observations which are strings
Date   Tue, 14 Feb 2012 11:57:50 -0800 (PST)

Hi All,

   I am working with genetic data and have a list of almost 11 million observations (each is a string; e.g. rs12345, rs23456 etc) under the SNP variable in a results file. I have a separate list of SNPs (around 5000) which should be excluded from the results file.

  Now, some of the 5000 SNPs may not be there in the results file. I don't know which ones of the 5000 are present/absent in the results file. What would be the best way to drop any SNP from the results file which appears in the exclude SNP list?

   Thanks,

   -Joey


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