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/