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: Select a particular test


From   "Peci, Adriana (OAHPP)" <Adriana.Peci@oahpp.ca>
To   <statalist@hsphsun2.harvard.edu>
Subject   st: Select a particular test
Date   Thu, 23 Feb 2012 17:57:05 -0500

Dear Stata list,

I have a long form database in which each patient identified by pat_id
have up to four tests performed. 
The test names are:IFA, DFA, CULT, BIN.
I want to select/know how many patients had IFA but not DFA, CULT, or
BIN.

Here is an improvise of my data:

Pat_id    Test
1         IFA
1         DFA
1         CULT
1         BIN
2         BIN
2         IFA
2         DFA
3         IFA
4         DFA
4         CULT
4         CULT



Could someone help me with that ?

Thank you so much, 

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