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

st: Re: prevarication

From   baum <>
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).

* For searches and help try:

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