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
Related Posts with Problem with data management multiple imputated datasets
arrays in stata?hi all, I m wondering if there is a way in stata to use arrays ( like in sas) to search through mul…
two way or one way fixed effect modelHello! I am writing my master thesis on the effect of implementing GSCM practices on financial perfo…
Unit root testHi, I am trying to do unit root test for panel data, every time it brings errors saying sample may n…
Unexpected results from -nicenum-I've noticed some behaviour with -nicenum- that strikes me as odd. Specifically, the results that it…
comparing student ability using test scoresHello Suppose I got exam scores for students from different classes of different grades in a school…
Subscribe to:
Post Comments (Atom)
0 Response to Problem with data management multiple imputated datasets
Post a Comment