Dear Statalist members,
I am asking your help with managing my outcome variable in imputed datasets. I performed multiple imputation using MICE, to impute missing values in 20 variables including my outcome variable. I asked for 75 imputations. However, after the imputation I wanted to delete the imputed values in my oucome variable in all 75 imputed datasets. I tried the following commands:
mi set flong
generate day1= Step8 if _mi_m==0
Step 8 is my outcome variable, which had missing values in the _mi_m=0 dataset. In the 75 imputed datasets Step8 was imputed, but I would like to set Step8 as the original data was including missing values in all 75 imputed datasets. However, after using this command, I created the new variable day1, but only got values in the _mi_m=0 dataset. How can I expand these values to the _mi_m=1 up to _mi_m_=75 datasets?
Thank you for your help in advance.
Kind regards,
Daisy
0 Response to Problem with data management multiple imputated datasets
Post a Comment