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. I am not using the current version of Stata that has inbuilt features for imputation. This is the code that I am using:
#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 .
Is there a flaw with the way things are working out due to the form of the data. Any suggestions to resolve this error? Thanks in advance.
Jibonayan
P.S. : I sent in an earlier mail that did not go thro...I am sorry if I am sending in a repeat mail.
*
* 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/