home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!usc!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: <1992Jul31.165651.17698@u.washington.edu>
- Date: 31 Jul 92 16:56:51 GMT
- Sender: news@u.washington.edu (USENET News System)
- Reply-To: xiang@u.washington.edu
- Organization: University of Washington, Seattle
- Lines: 32
-
- Dear helpers,
-
- Since I posted my subject "Reading Data Conditionally", I've
- received many kind responses. I want to say thanks to all of
- you.
-
- However, I guess I didn't describe what I want clearly enough.
- Let me try again. Data:
-
- obs time stimul resp
- 1 0.01 50 0
- 2 0.02 56 0
- 3 0.03 72 1
- 4 0.04 78 1
- 5 0.06 89 2
- 6 0.50 90 0
- 7 0.59 75 0
- 8 0.65 76 1
- 9 0.76 87 1
- 10 0.89 75 0
- 11 0.92 76 0
- 12 0.95 80 2
- ...
- What I want is: third obs(0.03 72 1), eighth obs(0.65 76 1), and
- twelfth obs(0.95 80 2). I want EACH first observation where the
- value of resp for the last obs is 0. For example, I DONOT want
- the fifth obs(0.06 89 2) even though this is the first time the value
- 2 appears, because the value of resp for the fourth obs is 1, not 0.
-
- I hope I'm explaining it clearly. Thank you again!
- D
- twelveth
-