Hello,
I am conducting multiple imputation using the mi chained command with predictive mean matching (pmm). It appears that the imputation is completed, but I am receiving an error message and I am unable to figure out what it means. Here is the error message:
"Median of S12 invalid name
stata(): 3598 Stata returned error
_Imp_chained::destroy(): - function returned error
S12 is a variable name. Can anyone tell me what the error message means?
Here is all of my code:
mi register imputed CBI7re CBI8re CBI9re CBI10re CBI11re CBI12re CBI13rre CBI14re CBI15re CBI16re CBI17re CBI18re CBI19re JS1 JS2 JS3 JS4 JS5 JS6 ST1 ST2 ST4 ST5
TP1 TP2 TP3 TP4 TP5 PS1 PS2 PS3 PS4 PS5 PS6 PS7 S12_Comb S3 S4 S5 S6 S7 S8 S9 S10 S11 S12 S13 S14 S15 S16 S17 S18 CR1 CR2a CR2b CR2c CR2d CR2e CR2f CR2g;
mi register regular SanFran Missouri Indiana YrsPosDum0 YrsPosDum1 YrsPosDum2 YrsPosDum3 YrsPosDum4 YrsPosDum5 JobFunAssess JobFunPerm JobFunOther EduBachelors EduMasters EduOther Race3 Gender1;
mi impute chained (pmm, knn(10)) CBI7re CBI8re CBI9re CBI10re CBI11re CBI12re CBI13rre CBI14re CBI15re CBI16re CBI17re CBI18re CBI19re JS1 JS2 JS3 JS4 JS5 JS6 ST1 ST2 ST4 ST5 TP1 TP2 TP3 TP4 TP5 PS1 PS2 PS3 PS4 PS5 PS6 PS7 S12_Comb S3 S4 S5 S6 S7 S8 S9 S10 S11 S12 S13 S14 S15 S16 S17 S18 CR1 CR2a CR2b CR2c CR2d CR2e CR2f CR2g
=Missouri Indiana YrsPosDum1 YrsPosDum2 YrsPosDum3 YrsPosDum4 YrsPosDum5 JobFunPerm JobFunOther EduMasters EduOther Race3 Gender1, add(3) burnin(100) rseed(9995) dots force savetrace(T:\JDR_COHA\convergence\chainedTRACE_Sca leItems_5pmm10_pmmONLY, replace);
Thank you in advance for any guidance you can offer,
Jon Phillips
I am conducting multiple imputation using the mi chained command with predictive mean matching (pmm). It appears that the imputation is completed, but I am receiving an error message and I am unable to figure out what it means. Here is the error message:
"Median of S12 invalid name
stata(): 3598 Stata returned error
_Imp_chained::destroy(): - function returned error
S12 is a variable name. Can anyone tell me what the error message means?
Here is all of my code:
mi register imputed CBI7re CBI8re CBI9re CBI10re CBI11re CBI12re CBI13rre CBI14re CBI15re CBI16re CBI17re CBI18re CBI19re JS1 JS2 JS3 JS4 JS5 JS6 ST1 ST2 ST4 ST5
TP1 TP2 TP3 TP4 TP5 PS1 PS2 PS3 PS4 PS5 PS6 PS7 S12_Comb S3 S4 S5 S6 S7 S8 S9 S10 S11 S12 S13 S14 S15 S16 S17 S18 CR1 CR2a CR2b CR2c CR2d CR2e CR2f CR2g;
mi register regular SanFran Missouri Indiana YrsPosDum0 YrsPosDum1 YrsPosDum2 YrsPosDum3 YrsPosDum4 YrsPosDum5 JobFunAssess JobFunPerm JobFunOther EduBachelors EduMasters EduOther Race3 Gender1;
mi impute chained (pmm, knn(10)) CBI7re CBI8re CBI9re CBI10re CBI11re CBI12re CBI13rre CBI14re CBI15re CBI16re CBI17re CBI18re CBI19re JS1 JS2 JS3 JS4 JS5 JS6 ST1 ST2 ST4 ST5 TP1 TP2 TP3 TP4 TP5 PS1 PS2 PS3 PS4 PS5 PS6 PS7 S12_Comb S3 S4 S5 S6 S7 S8 S9 S10 S11 S12 S13 S14 S15 S16 S17 S18 CR1 CR2a CR2b CR2c CR2d CR2e CR2f CR2g
=Missouri Indiana YrsPosDum1 YrsPosDum2 YrsPosDum3 YrsPosDum4 YrsPosDum5 JobFunPerm JobFunOther EduMasters EduOther Race3 Gender1, add(3) burnin(100) rseed(9995) dots force savetrace(T:\JDR_COHA\convergence\chainedTRACE_Sca leItems_5pmm10_pmmONLY, replace);
Thank you in advance for any guidance you can offer,
Jon Phillips
Comment