Date: Wed, 22 Apr 1998 12:51:10 -0600
Reply-To: cdaviso@HUBCAP.CLEMSON.EDU
Sender: "SAS(r) Discussion" <SAS-L@UGA.CC.UGA.EDU>
From: cdaviso@HUBCAP.CLEMSON.EDU
Organization: Deja News - The Leader in Internet Discussion
Subject: Creating Cumulative Frequency Output Datasets
We have 200 age classes each of which has an individual frequency of
occurrence. We need to be able to sum all of these frequencies in cumulative
fashion and then output them into a dataset. We have been able to get
cumulative frequencies via Proc Chart and Proc Freq but we cannot output these
frequencies to a dataset. That is, while we are able to print these cumulative
frequencies to the screen, the output datasets we create consist of the
original, non-cumulative frequencies only. We have tried to sum lag functions,
i.e., y1=lag(y)
y2=lag(y1)
but there are then 200 lags and this does not seem to work. Any suggestions as
to how to create the cumulative frequency output dataset will be greatly
appreciated. Since neither of us checks this group regularly, please send any
responses to us directly at either: cdaviso@hubcap.clemson.edu (Chris) or
wbrdgs@mail.clemson.edu (Billy). Thanks very much.
-----== Posted via Deja News, The Leader in Internet Discussion ==-----
http://www.dejanews.com/ Now offering spam-free web-based newsreading
|