home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!elroy.jpl.nasa.gov!sdd.hp.com!uakari.primate.wisc.edu!usenet.coe.montana.edu!news.u.washington.edu!milton.u.washington.edu!xiang
- From: xiang@milton.u.washington.edu (Charlene Zhu)
- Newsgroups: bit.listserv.sas-l
- Subject: Reading Data Conditionally
- Message-ID: <1992Jul30.204137.29401@u.washington.edu>
- Date: 30 Jul 92 20:41:37 GMT
- Sender: news@u.washington.edu (USENET News System)
- Reply-To: xiang@u.washington.edu
- Organization: University of Washington, Seattle
- Lines: 25
-
- Hi!
-
- I'm a new SAS user. I have a data set which looks like:
-
- Time Stimul Resp Tooth
- 0.59 70 0 0
- 0.63 75 0 0
- 0.71 80 0 0
- 0.76 90 1 0
- 0.79 103 1 0
- 0.88 79 0 0
- 0.97 81 0 0
- 1.02 83 2 0
- 1.06 90 0 1
- ...
-
- Now I need to select observations based on Resp Values: Select
- the very first observation where resp=1 or resp=2. In the data above,
- it will be the fourth observation: 0.76 90 1 0, and the eighth
- observation: 1.02 83 2 0.
-
- I appreciate your comments. Since I don't check this newsgroup
- often enough, please respond to me at xiang@u.washington.edu.
- For those of you who feel this is too easy to be put on the net,
- please be tolerant. Thank you.
-