Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down on April 23, and its replacement, is already up and running.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: st: predict with xtreg

From   Maarten Buis <>
Subject   Re: st: predict with xtreg
Date   Thu, 8 Nov 2012 16:10:15 +0100

On Thu, Nov 8, 2012 at 3:53 PM, Carmen Blanco wrote:
> According to your help the problem is because few variables in my
> model has a missing value for the observations. And , in fact, I want
> to say that my panel data is unbalanced. Do you know please how to
> calculate the random error component (u) in my panel data with another
> way?

Why would you want to do so? Those observations with missing values
weren't used, so -predict- is doing the right thing to ignore them.

If you want to use the observations with missing values you'll have to
make sure that -xtreg- can use those observations, e.g. -help mi-. Be
warned: doing that right is a major project, so plan a couple of
months minimum for that and ask yourself if 52 observations is worth a
couple of months of your live...

-- Maarten

Maarten L. Buis
Reichpietschufer 50
10785 Berlin
*   For searches and help try:

© Copyright 1996–2016 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index