Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
st: Keep specific observation
From
Yun <[email protected]>
To
"[email protected]" <[email protected]>
Subject
st: Keep specific observation
Date
Sat, 3 Sep 2011 00:12:44 +1000
I need help in stata command to drop/keep certain observations using stata 11.0
There are two column of different data. Fisrt column is A,B,C (unique ID). The second column has data 1,2,3.
Column 1 Column2
A 1
A 2
A 3
B 1
B 2
C 1
C 2
C 3
D 1
D 3
I need all the observations that satisfy this condition --> column 1 will have group of column 2 (1,2,3)--> for instance A & C.
I do not know the command for this.
Thank you.
Regards,
Yun
*
* 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/