Date: Thu, 23 Aug 2007 09:44:48 -0700
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
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!!