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

st: xtreg, fe: predict u(i) and get a single value for each person


From   Larsen Mona <ML@sfi.dk>
To   "'statalist@hsphsun2.harvard.edu'" <statalist@hsphsun2.harvard.edu>
Subject   st: xtreg, fe: predict u(i) and get a single value for each person
Date   Mon, 1 Jul 2002 12:11:33 +0200

I hope that someone could help with the following problem:

I use the procedure xtreg, fe to make a fixed effects estimation. I have got
a panel data set that consists of 500 individuals. I have information about
two years (year1 and year2) for each person. In the long form this data
consists of 1000 observations. That is, the number of observations in the
fixed effects estimation is 1000. Afterwards, I want to predict u(i) to get
a single value  for each person. Right now I get a value for each
observation. That is, u(i)-year1 and u(i)-year2. How do I get a single value
for each person?

Thanks in advance.
Mona
*
*   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