Hi all,
I am having trouble with multiple imputation. I have a variable, z, which is an index made up of three components: z1, z2 and z3. I have complete data on the weights of these components (w1, w2 and w3), but not on the components themselves.
Rather than imputing z directly, I impute z1, z2 and z3. Note that when z1 is missing, z2 and z3 may be present, and so on. So I impute some values of the three components. So far, I have no problems.
The problem comes when I try to combine these imputations for imputations of the index z and include this variable in a regression. Here's what I do:
This works fine, too. I get 10 new copies of z with blanks replaced with imputed values. However, when I try this:
I get the following:
I think the variable isn't registered properly in some way, but I can't figure out what to change.
Thanks,
Alex
I am having trouble with multiple imputation. I have a variable, z, which is an index made up of three components: z1, z2 and z3. I have complete data on the weights of these components (w1, w2 and w3), but not on the components themselves.
Rather than imputing z directly, I impute z1, z2 and z3. Note that when z1 is missing, z2 and z3 may be present, and so on. So I impute some values of the three components. So far, I have no problems.
The problem comes when I try to combine these imputations for imputations of the index z and include this variable in a regression. Here's what I do:
Code:
gen z = w1*z1+w2*z2+w3*z3 mi register imputed z forval i = 1/10{ replace _`i'_z = w1*_`i'_z1+w2*_`i'_z2+w3*_`i'_z3 }
Code:
mi estimate: regress y x z
Code:
(20 values of imputed variable z in m>0 updated to match values in m=0)
Thanks,
Alex
Comment