Statalist


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

st: uvis in Stata 9


From   JIBONAYAN RAYCHAUDHURI <jibonayanrc@yahoo.com>
To   statalist@hsphsun2.harvard.edu
Subject   st: uvis in Stata 9
Date   Wed, 5 Aug 2009 15:11:02 -0700 (PDT)

Hi Stata users,
I am using uvis to do multiple imputation on a panel data set (in long
form). I am imputing values for employment. This is the code that I
have written:

#delimit;
forv i = 1(1)5 {;
preserve;
uvis regress lognoofemployees logsalariesandwages yeardummy2-yeardummy4,
gen(lognoofemployees_imp`i') seed(123695`i');
replace lognoofemployees = lognoofemployees_imp`i';
save imp`i',
replace;
restore;
};

#delimit;
forv i = 1(1)5 {;
use imp`i', clear;
};

miset using imp
mifit, indiv: logsales lognoofemployees_imp  exportdummy
mifit: xtreg  lognoofemployees_imp  exportdummy

The first reg command gives me the error message :

combining estimates is not possible: fitted model differs across datasets
r(498);

whereas the second command works fine, i.e., shows the overall estimates .

Any
suggestions to resolve this error? Thanks in advance.

Jibonayan



      
*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   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