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
Selecting a sub-sample of a survival dataset, such that the mortality rate (-strate-) in the selected sub-sample achieves a certain targetStata MP 14.2, OSX 10.15.4 I am looking for an approach, be it by simulation or other, that will he…
Gsem function and Xt ?Dear honourable members, I am running a longitudinal data analysis using the gsem command according…
Calculating Fleiss KappaEach subject represents a rater. I want to know the agreement for the raters for each test. Why am I…
export excel - modifyHi STATALIST, I made an excel file using following codes: Code: export excel n /// u…
graph constant variablesHi, for example i have 3 variables with constans and i want to graph a line that follows each consta…
Subscribe to:
Post Comments (Atom)
0 Response to Problem with data management multiple imputated datasets
Post a Comment