Hi,
I've attempted MI with the mi chained command on my dataset of around 6000 with mainly ordinal and binary variables. I'm generating 40 datasets as missingness is around 30-35% on some variables, and have broken down my model using the add(#) replace and replace options to speed things up (code below). I've tried several times but the variables all still have some, albeit less, missingness:
mi impute chained (pmm , knn(10)) FOVWT1 z_c1 = sex ethnicity income_age11 parents_age11 siblings_age11 wellbeing_age11 selfesteem_age11 z_wellbeing_age14 z_selfesteem_age14 z_MH_score, add (40) replace rseed (2002) dots augment noisily
mi impute chained (logit) overweight carer illness parent_depression_age9mo bullied_age11 bully_age11 parent_battles_age11 parent_comm_age11 parks_age11 = sex ethnicity income_age11 parents_age11 siblings_age11 wellbeing_age11 selfesteem_age11 z_wellbeing_age14 z_selfesteem_age14 z_MH_score, replace rseed (2002) dots augment noisily
mi impute chained (ologit) social_network empl_age11 parental_educ_age11 compared_SEP_age11 afford_more_age11 parent_close_age11 parent_health_age11 siblings_bully_age11 parent_satisfied_age11 argue_friends_age11 IMD_age11 area_safety_age11 = sex ethnicity income_age11 parents_age11 siblings_age11 wellbeing_age11 selfesteem_age11 z_wellbeing_age14 z_selfesteem_age14 z_MH_score, replace rseed (2002) dots augment noisily
mi impute chained (logit) teacher_sex suspended_age11 SENDtr_age11 class_misbehaviour_age11 setting_age11 = sex ethnicity income_age11 parents_age11 siblings_age11 wellbeing_age11 selfesteem_age11 z_wellbeing_age14 z_selfesteem_age14 z_MH_score, replace rseed (2002) dots augment noisily
mi impute chained (ologit) stream_age11 prepared_age11 teacher_years_age11 teacher_years1_age11 class_exclusions_age11 = sex ethnicity income_age11 parents_age11 siblings_age11 wellbeing_age11 selfesteem_age11 z_wellbeing_age14 z_selfesteem_age14 z_MH_score, replace rseed (2002) dots augment noisily
Thanks in advance for any advice!
Related Posts with Multiply imputed dataset still contains missing values
Extract date from a string variable containing other textHello Experts, I have poorly entered data where date is embedded within text (var1). I need to extr…
Unknown correlation between regressorsDear Statalist, I am grateful for any help on the following question: I have several datasets, eac…
Plotting non-linear curve when using fixed effect controlsHi Stata users, During my undergraduate dissertation I have been learning how to use Stata. This re…
Unable to open asdoc tables in wordHello people! As the title already states I cannot open asdoc tables anymore in word. Instead, I get…
stpm2 tvc df graphGood morning. I am a researcher unfamiliar with stpm2. I have some questions regarding stpm2 executi…
Subscribe to:
Post Comments (Atom)
0 Response to Multiply imputed dataset still contains missing values
Post a Comment