Bookmark and Share

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


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

st: AW: AW: sum() with egenerate


From   "Martin Weiss" <[email protected]>
To   <[email protected]>
Subject   st: AW: AW: sum() with egenerate
Date   Tue, 13 Apr 2010 15:31:07 +0200

<> 



BTW, I answered this post almost instantaneously, but in reverse order of my
later reply: 


" Try

*************
which _gsum
view "`r(fn)'"
*************

and you get the solution. Use -sum()- with -generate- to get the expected
behavior."



This answer never made it to the list, instead I received one of those
bounce mails from StataCorp:


" Dear Martin Weiss <[email protected]>,

You sent email to Statalist <[email protected]> and Majordomo,
the Statalist software, bounced it.  The email you sent is attached below,
but
the most likely reason for the bounce is:

Admin request of type /^\s*which\s+\S+\s*$/i at line 9  "



I am not quite sure how I violated Statalist rules with my post (I have been
pretty successful posting to this list in the last couple of months...), but
is there a connection to an early -which- in the body of the email?



HTH
Martin


-----Ursprüngliche Nachricht-----
Von: [email protected]
[mailto:[email protected]] Im Auftrag von Martin Weiss
Gesendet: Dienstag, 13. April 2010 14:15
An: [email protected]
Betreff: st: AW: sum() with egenerate


<> 


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


Try

*************
which _gsum
view "`r(fn)'"
*************

and you get the solution of the riddle. 



HTH
Martin


-----Ursprüngliche Nachricht-----
Von: [email protected]
[mailto:[email protected]] Im Auftrag von
[email protected]
Gesendet: Dienstag, 13. April 2010 14:00
An: [email protected]
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?

Thanks,
Ulrich
*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/


*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/


*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/


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