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: by in movestay


From   Nick Cox <[email protected]>
To   [email protected]
Subject   Re: st: by in movestay
Date   Tue, 1 May 2012 08:29:35 +0100

-movestay- is from SJ (latest version from SSC). Please remember to
specify where user-written programs you refer to come from.

As the error message indicates, -movestay- does not support -by:-. If
you want to fit separate models, you need (in this example) to loop
over industries; or to clone -movestay- and rewrite the clone so that
it does support -by:-.

For the first, see e.g.

FAQ     . . . . . . . . . . Making foreach go through all values of a variable
        . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  N. J. Cox
        8/05    Is there a way to tell Stata to try all values of a
                particular variable in a foreach statement without
                specifying them?
                http://www.stata.com/support/faqs/data/foreach.html


On Tue, May 1, 2012 at 3:20 AM, Nobuya Fukugawa <[email protected]> wrote:

> Does anyone know how to use bys in movestay?
>
> bys industry: movestay y x1 x2 x3 ,sel(dummy= z1 z2 z3 ) r
> movestay may not be combined with by
> r(190);
*
*   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