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   Christopher Baum <kit.baum@bc.edu>
To   "statalist@hsphsun2.harvard.edu" <statalist@hsphsun2.harvard.edu>
Subject   Re: st: by in movestay
Date   Tue, 1 May 2012 13:24:50 -0400

<>
On May 1, 2012, at 2:33 AM, Nobuya 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);

Not all user-written commands, such as -movestay- (SJ), are by-able. You can always get to the same place by doing something like

levelsof industry
foreach n of local r(levels) {
	movestay ...
}

Kit


Kit Baum   |   Boston College Economics & DIW Berlin   |   http://ideas.repec.org/e/pba1.html
                             An Introduction to Stata Programming  |   http://www.stata-press.com/books/isp.html
  An Introduction to Modern Econometrics Using Stata  |   http://www.stata-press.com/books/imeus.html


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