Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: st: Re: statsby and xtreg


From   "Michael Blasnik" <michael.blasnik@verizon.net>
To   <statalist@hsphsun2.harvard.edu>
Subject   Re: st: Re: statsby and xtreg
Date   Mon, 12 Apr 2004 14:40:48 -0400

I agree, there should be some option to go with the more universally
applicable -if- approach.  Still, I wouldn't think that there would be many
commands that allow -if- but do not allow -in- and also don't require the
data to be tsset, but who knows?

Michael Blasnik
michael.blasnik@verizon.net


----- Original Message ----- 
From: "Jesper B. Sorensen" <sorensen@mit.edu>
To: <statalist@hsphsun2.harvard.edu>
Sent: Monday, April 12, 2004 1:38 PM
Subject: Re: st: Re: statsby and xtreg


> Not so unusual, I think, if one thinks of nested groups (eg., industries
> within sectors, or counties within states, etc.)  It's presumably also a
> more general problem in that it affects all commands that do not allow
> -in-  -- the frequency of which I don't know.
>
> Thanks for the tsset clue.  But rather than force the user to tsset (or
> know that it has to be done) an option to force the -if- behavior would
> seem preferable.
>
> //Jesper
>
> At 01:20 PM 4/12/2004 -0400, you wrote:
> >It seems unusual that you would have xtreg models that you want to run by
> >group using statsby, but it's certainly possible.  I think that if the
> >dataset is -tsset- then the new -statsby- will use the older method that
> >does not emply -in-, which should work.
> >
> >Michael Blasnik
> >michael.blasnik@verizon.net
> >
> >
> >----- Original Message -----
> >From: "Jesper B. Sorensen" <sorensen@mit.edu>
> >To: <statalist@hsphsun2.harvard.edu>
> >Sent: Monday, April 12, 2004 12:50 PM
> >Subject: st: statsby and xtreg
> >
> >
> > > I want to use statsby to collect coefficient estimates from xtreg, fe,
but
> > > it fails.  As far as I can determine this is because statsby, buidling
on
> > > statsbyfast, uses
> > > -in- instead of -if - to select the by groups.  -xtreg- does not allow
the
> > > use of -in-
> > >
> > > I gather that the current version of statsby use -in- because it is
faster
> > > in most cases
> > > (http://www.stata.com/statalist/archive/2003-07/msg00403.html).  But I
do
> > > not see an option in the help for statsby to override the use of in
and
> > > force the use of if.  Or am I missing something?
> > >
> > > Thanks,
> > > Jesper


*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index