|
楼主
楼主 |
发表于 2004-9-11 13:24:40
|
只看该作者
How to creat a subset with two different tests
To All:
I have a dataset like this:
id test1 test_date1 test2 test_date2 test3 test_date3
1 ca 2003/02/04 alb 2003/02/04 ca 2003/06/06
2 ca 2003/12/05 ca 2003/12/06 alb 2003/12/06
3 ca 2003/12/05 ca 2003/12/05 alb 2003/12/06
........
(here,test1-test3 denote three tests done on test_date1,
test_date2 and test_date3, repectively.There are two kinds
of tests ("ca" or "alb").I want to create a subset including
all subjects, each of which has both the test "ca" and "alb"
on the same date, e.g., the above subjects with id=1 and id=2
will be included in the dataset. I would appreciate it very
much if anyone could write a SAS program for me to create the
subset.
Thanks a lot!
James Liu |
|