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

st: Re: prevarication


From   baum <[email protected]>
To   [email protected]
Subject   st: Re: prevarication
Date   Thu, 17 Oct 2002 08:57:02 -0400

--On Thursday, October 17, 2002 2:33 -0400 James wrote:

 Is there any Stata command
that can be used to estimate a model with a fixed subject effect (where
subject is the grouping variable) and a random time effect?
Presuming that there are not too many subjects to 'dummify', this can be done by lying through your teeth. If you say 'iis time' and 'tis subject', xtreg, re will then run a random-time-effects model. Since xtreg does not support two-way effects, you have to dummify the other dimension (or deal with it in other ways, such as conducting the demeaning outside of the estimation step).

Kit
*
* 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–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index