|
cock.verboom@UNIQEMA.COM wrote:
>
>Hello,
>
>Could someone provide me the answer how to calculate cumulative values in
>columns?
>
>x y
>1 3
>2 5
>3 7
>
>Apply SAS code and the output should be:
>
>x y y_cum
>1 3 3
>2 5 8
>3 7 15
>
>Thank you in advance!
>
>Cornelis Verboom
>The Netherlands
I see that you have received several solutions.
But if you have to do this for more than one level of some grouping
variable, then it might be easier to do this using PROC EXPAND.
HTH,
David
--
David L. Cassell
mathematical statistician
Design Pathways
3115 NW Norwood Pl.
Corvallis OR 97330
_________________________________________________________________
Who's that on the Red Carpet? Play & win glamorous prizes.
http://club.live.com/red_carpet_reveal.aspx?icid=REDCARPET_hotmailtextlink3
|