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: FW: Why does this simple code only work some of the time?


From   Nick Cox <[email protected]>
To   [email protected]
Subject   Re: st: FW: Why does this simple code only work some of the time?
Date   Tue, 11 Dec 2012 12:02:36 +0000

This may be a side-effect of using an accented character in the
variable name. I agree that you would want that to have no effect, but
it's the only detail you are giving that sounds in any sense unusual.

Try

set trace on
set tracedepth 1

before running this command and

set trace off

to tell us where the error occurs.

Nick

On Tue, Dec 11, 2012 at 11:33 AM, André Gyllenram
<[email protected]> wrote:

> I have this simple code:
>
> egen test=total(aktievärde), by (lopnr_personnr datum isin)
>
> It works for some data sets, but usually I get this message:
>
> _000001 not found.
>
> If i write egen test=total(aktievärde) i get the same message.

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


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