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

st: Obtaining fixed effects using the predict command ; sorting issues


From   Bob Rijkers <[email protected]>
To   [email protected]
Subject   st: Obtaining fixed effects using the predict command ; sorting issues
Date   Fri, 19 Aug 2005 10:28:22 +0100 (BST)

To Whom It May Concern,

I am estimating a fixed-effects model on a dynamic panel using the xtreg, fe command. I would like to obtain an estimate of the fixed effects. When I use the predict command (with option ,u for fixed effects) I get an error message telling me the data are not sorted. However, simply sorting the data by panel-variable and time-variable does not resolve the issue. My question is; what am I doing wrong? Or; how do I sort my data? 

Sincerely,

Bob Rijkers

PS Obviously,  I could compute the fixed effects in a more roundabout fashion by calculating fitted values (the predict command does enable me to obtain fitted values), and computing the mean residual, but I have the gut feeling there must be an easier way of obtaining the fixed effects.
*
*   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