if you have a variable x, and want another variable y=sum(x), then Stata 7's
egen y=sum(x)
will do it.
Gabi
-----Original Message-----
From: Sirenia Vazquez [mailto:[email protected]]
Sent: Tuesday, July 29, 2003 2:26 PM
[...]
There is a command in the spss program in which you can generate a new
variable that is the cumulative summatory of the original variable (namely
csum). I would like to know if there is a similar command or funcion in
Stata,
or if there is any other way I could create that new variable.
Thank you.
Sirenia Vazquez