Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down at the end of May, and its replacement, statalist.org is already up and running.


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

Re: st:any easy alternative way when -egen- is not allowed to combine with by


From   Amanda Fu <mandy.fu1@gmail.com>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st:any easy alternative way when -egen- is not allowed to combine with by
Date   Tue, 21 Dec 2010 19:38:26 -0500

Dear Mr Kolenikov and Radyakin,

Thank you both for the help! I understand the spirit in Stas's codes
and I know Sergiy's points. I appreciate you guys helping me out here.
By the way, I like the idea of using tempvar here.

Sincerely,
Amanda

On Tue, Dec 21, 2010 at 7:07 PM, Stas Kolenikov <skolenik@gmail.com> wrote:
> On Tue, Dec 21, 2010 at 5:40 PM, Sergiy Radyakin <serjradyakin@gmail.com> wrote:
>> Hi Stas!
>>
>> there are at least three problems with your code:
>> 1) you are missing ` ' around sumnew in the second bysort;
>> 2) you are missing cond() in the second bysort;
>> 3) the program does not work :(
>
> Sergiy is absolutely right in his criticisms. I am looking for
> something to shoot myself in the foot :)
>
> --
> Stas Kolenikov, also found at http://stas.kolenikov.name
> Small print: I use this email account for mailing lists only.
> *
> *   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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index