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: Error r(103) after gengroup command


From   Nick Cox <njcoxstata@gmail.com>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: Error r(103) after gengroup command
Date   Sat, 26 May 2012 00:36:08 +0100

I agree with Daniel on all points. In addition, I don't think that
Rachel's principle is correct. There are many packages on SSC and some
are downloaded only very rarely.

I note that the program author has a program -genscore- (also SSC)
which can take several variables as arguments. A wild guess is that he
confused programs while writing the help files. Whatever the story,
-gengroup- is set up to take only one variable at a time. Nothing
stops you calling it repeatedly if that achieves your purpose.

Nick

On Sat, May 26, 2012 at 12:07 AM, daniel klein
<klein.daniel.81@googlemail.com> wrote:
> Rachel,
>
> the FAQ ask you to explain where user-written programs you use come
> from. -gengroup- is available from SSC. I have no clear idea what the
> program is supposed to do, but the code reads
>
> [...]
> syntax varlist(numeric min=1 max=1)
> [...]
>
> which implies that you are not allowed to specify more than one
> variable. The help file is clearly misleading here, as it states that
> a varlist is allowed and also gives examples using more than one
> variable. My advice is to contact the author.
>
> Best
> Daniel
>
> --
> [...]
> Here is the command and the error I am getting:
> . gengroup A1 A3 A6
>  too many variables specified
>  r(103);
>
> The command works perfectly if I specify only one variable to group
> by, such as A1.
> [...]
> Any ideas on what I am doing wrong?

*
*   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