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
Mixed model postestimationI have a longitudinal data set of children from birth to 5 years. During the first year, %body fat i…
Gravity model regressionI want to estimate a gravity model 5 countries in East Africa Community (EAC), Burundi, Kenya, Rwand…
VAR switching modelsHi I'm trying to model a VAR model using switching regimes appraoch. I know that STATA14 performs SP…
Partial adjustment model explanationHi all, I'm trying to replicate the following paper: https://onlinelibrary.wiley.com/doi/...1.2008.…
Need to change order of boxes in box plot commandDear statalist, I have a command to graph a box plot for multiple variables and year as follow Cod…
Subscribe to:
Post Comments (Atom)
0 Response to Problem with data management multiple imputated datasets
Post a Comment