home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / bit / listserv / sasl / 3819 < prev    next >
Encoding:
Text File  |  1992-08-20  |  2.2 KB  |  54 lines

  1. Comments: Gated by NETNEWS@AUVM.AMERICAN.EDU
  2. Path: sparky!uunet!paladin.american.edu!auvm!CCLINK.FHCRC.ORG!AFOWLER
  3. Message-ID: <9208191033.A04393@cclink.fhcrc.org>
  4. Newsgroups: bit.listserv.sas-l
  5. Date:         Wed, 19 Aug 1992 10:33:44 PDT
  6. Reply-To:     annfow <afowler@CCLINK.FHCRC.ORG>
  7. Sender:       "SAS(r) Discussion" <SAS-L@UGA.BITNET>
  8. From:         annfow <afowler@CCLINK.FHCRC.ORG>
  9. Subject:      Subsetting data set
  10. Lines: 42
  11.  
  12.           CONTENT:  Question on subsetting a data set
  13.           REL/PLTF: PC SAS v6.04 on DOS
  14.           E-ADDR:   annfow@cclink.fhcrc.org
  15.           NAME:     Ann Fowler
  16.           DATE:     8/20/92
  17.  
  18.           I was given a data file (ascii) that contains both baseline
  19.           values and 1-yr follow-up values.  Each respondent has
  20.           multiple records of the same variables except for the date.
  21.           The only thing that distinguishes between the baseline
  22.           records and follow-up records is that they are about a year
  23.           apart.  Is there an easy way to separate the baseline data
  24.           from the one year data?  The problem is that there are no
  25.           fixed no. of records for each respondent.  Some have 2
  26.           records at baseline and 4 at follow-up, 4 at baseline and
  27.           none at follow-up, 3 at baseline and 2 at follow-up, etc.
  28.           There is also no specific cut-off date for baseline, ie. the
  29.           dates overlap.  Below is an eg.:
  30.  
  31.           ID     DATE    VAR1  VAR1  VAR3........
  32.           101    8/10/90  1     2     3
  33.           101    8/11/90  2     2     1
  34.           101    8/12/90  1     1     2
  35.           102    5/1/91   1     1     3
  36.           102    5/3/91   2     3     3
  37.           103    8/5/91   3     3     1
  38.           103    8/7/91   1     1     1
  39.           101    8/4/91   3     3     2
  40.           101    8/5/91   2     2     3
  41.           103    8/1/92   1     1     1
  42.           107    10/1/90  1     2     2
  43.           107    10/3/90  2     3     1
  44.           102    4/29/92  3     2     1
  45.           102    4/30/92  2     2     2
  46.           104    6/23/90  3     3     3
  47.           104    6/24/90  3     1     2
  48.           104    6/26/90  1     2     3
  49.  
  50.           p/s - I'm not very familiar with macros and I don't use sql.
  51.  
  52.  
  53.           Hope I've made my problem clear.  Thanks for any help.
  54.