Hi there,
I am trying to use mi impute chained to fill in missing data for quality of life data at 5 different time points (discharge, 3 months, 6 months, 12 months and 18months). There is some missing data at all the different time points. I was trying to use a number of variables to help determine the missing values such as age, gender and other measures of quality of life. However some of these other measures also have some missing data. When I try and run the commands it then comes up with the following:
EQ6: missing imputed values produced
This may occur when imputation variables are used as independent variables or when independent variables contain missing values. You can specify option force if you wish
to proceed anyway.
I just wondered if I can therefore only use those variables for which there is complete data and so I can see what the data looks like when it is forced, how do I specify the force option as noted?
The code I have used is below, Any advice would be greatly appreciated firstly on if my code is correct and!
mi set flong
mi misstable patterns
mi register imputed EQdis EQ3 EQ6 EQ12 EQ18
mi register regular age gender gcs modrandis_e3_1_c8 mrs_3months mrs_12months gosdis gos3months gos12months
mi impute chained (pmm,knn(5)) EQdis EQ3 EQ6 EQ12 EQ18 = gender age gcs modrandis_e3_1_c8 mrs_3months mrs_12months ,add(5) rseed(5)
Thanks
I am trying to use mi impute chained to fill in missing data for quality of life data at 5 different time points (discharge, 3 months, 6 months, 12 months and 18months). There is some missing data at all the different time points. I was trying to use a number of variables to help determine the missing values such as age, gender and other measures of quality of life. However some of these other measures also have some missing data. When I try and run the commands it then comes up with the following:
EQ6: missing imputed values produced
This may occur when imputation variables are used as independent variables or when independent variables contain missing values. You can specify option force if you wish
to proceed anyway.
I just wondered if I can therefore only use those variables for which there is complete data and so I can see what the data looks like when it is forced, how do I specify the force option as noted?
The code I have used is below, Any advice would be greatly appreciated firstly on if my code is correct and!
mi set flong
mi misstable patterns
mi register imputed EQdis EQ3 EQ6 EQ12 EQ18
mi register regular age gender gcs modrandis_e3_1_c8 mrs_3months mrs_12months gosdis gos3months gos12months
mi impute chained (pmm,knn(5)) EQdis EQ3 EQ6 EQ12 EQ18 = gender age gcs modrandis_e3_1_c8 mrs_3months mrs_12months ,add(5) rseed(5)
Thanks
Comment