Statalist


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

st: Multiple Imputation in Stata 10.0


From   JIBONAYAN RAYCHAUDHURI <[email protected]>
To   [email protected]
Subject   st: Multiple Imputation in Stata 10.0
Date   Thu, 6 Aug 2009 16:13:17 -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. 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/



© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index