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
What are .r values in a dataset? Can all values be replaced with 0?Hello, I have ".r" values in my dataset and I am unable to figure out why. Data comes from MSCI (KL…
Regression over time, industry, company, country, timeHello, I would like to regress the following equation: DV_{i,c,j,t} = a_i+α_c+α_j+a_t+beta * (IV_i*…
RE: Creating simulated dataHello, I generated a dummy variable using the following code: gen employed = 1 + int(2*runiform()) …
Problem with selecting only one county per stateHey there, I am a bit new to Stata, so I hope my question will be clear enough. I am looking at the …
-estout- returning "file could not be opened" error except for tex filesI'm running into a puzzling situation where I'm receiving the "file [XYZ] could not be opened" error…
Subscribe to:
Post Comments (Atom)
0 Response to Problem with data management multiple imputated datasets
Post a Comment