home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / bit / listserv / sasl / 3508 < prev    next >
Encoding:
Internet Message Format  |  1992-07-30  |  1.4 KB

  1. 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
  2. From: xiang@milton.u.washington.edu (Charlene Zhu)
  3. Newsgroups: bit.listserv.sas-l
  4. Subject: Reading Data Conditionally
  5. Message-ID: <1992Jul30.204137.29401@u.washington.edu>
  6. Date: 30 Jul 92 20:41:37 GMT
  7. Sender: news@u.washington.edu (USENET News System)
  8. Reply-To: xiang@u.washington.edu
  9. Organization: University of Washington, Seattle
  10. Lines: 25
  11.  
  12. Hi!
  13.  
  14.   I'm a new SAS user. I have a data set which looks like:
  15.  
  16.     Time    Stimul    Resp    Tooth
  17.      0.59    70        0         0
  18.         0.63    75        0         0
  19.         0.71    80        0         0
  20.         0.76    90        1         0
  21.         0.79    103       1         0
  22.         0.88    79        0         0
  23.         0.97    81        0         0
  24.         1.02    83        2         0
  25.         1.06    90        0         1
  26.         ...
  27.  
  28.   Now I need to select observations based on Resp Values: Select
  29. the very first observation where resp=1 or resp=2. In the data above,
  30. it will be the fourth observation: 0.76 90 1 0, and the eighth 
  31. observation: 1.02 83 2 0.
  32.  
  33.   I appreciate your comments.  Since I don't check this newsgroup 
  34. often enough, please respond to me at xiang@u.washington.edu. 
  35. For those of you who feel this is too easy to be put on the net, 
  36. please be tolerant. Thank you.         
  37.