LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous messageNext messagePrevious in topicNext in topicPrevious by same authorNext by same authorPrevious page (August 2007, week 4)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Thu, 23 Aug 2007 09:44:48 -0700
Reply-To:     aarcus@OEHHA.CA.GOV
Sender:       "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:         aarcus@OEHHA.CA.GOV
Organization: http://groups.google.com
Subject:      help
Comments: To: sas-l@uga.edu
Comments: cc: amy_email_1@yahoo.com
Content-Type: text/plain; charset="iso-8859-1"

Help! I have a dataset with 1000 obs (persons), each having 300 measurements (e.g., meas1-meas300) of the same outcome (e.g. intake of nutrient) taken at differing intervals. The dataset includes the interval of time between each measurement (inteval1-interval299). I want to sum the intervals for each person (ie, acroos each row) until the sum reaches a certain amount of time (ie, 3000 days). Then I need to sum the measurements for each person up to the measurement at the summed interval of 3000 days. I have tried using arrays and summing each row using: sum(of old(1) - old(i)) with no success. Likewise with: "suminteval = new(i) + new(i-1)". Any ideas?? Do I need to tranpsose the data?? I would very much appreciate any help!!


Back to: Top of message | Previous page | Main SAS-L page