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 on April 23, and its replacement, statalist.org is already up and running.


[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 <njcoxstata@gmail.com>
To   statalist@hsphsun2.harvard.edu
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
<a_gyllenram@hotmail.com> 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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index