Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: AW: sum() with egenerate

From   "Martin Weiss" <>
To   <>
Subject   st: AW: sum() with egenerate
Date   Tue, 13 Apr 2010 14:14:46 +0200


Use -sum()- with -generate- to get the expected behavior.


which _gsum
view "`r(fn)'"

and you get the solution of the riddle. 


-----Ursprüngliche Nachricht-----
[] Im Auftrag von
Gesendet: Dienstag, 13. April 2010 14:00
Betreff: st: sum() with egenerate

Hello everybody,

I used the sum() function in combination with egen command and it behaved
like the total() function, hence not a running sum as I expected.
Can anyone confirm this or is it an old topic?

*   For searches and help try:

*   For searches and help try:

© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index