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]

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


From   Amanda Fu <[email protected]>
To   [email protected]
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 <[email protected]> wrote:
> On Tue, Dec 21, 2010 at 5:40 PM, Sergiy Radyakin <[email protected]> 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–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index