Over a year ago, I used mi impute mvn- and I set the seed using r(seed)- to impute missing data. Now that my analysis is over, I am unable to reproduce the imputed data using the same commands and the same unimputed data that I had used the first time around.
A little more info about the first time I did this:
-This was the first time I had used mi impute, so I believe I probably ran a few imputations that didn't work out before nailing down the code and finally getting the results I kept. This presents a slight obstacle in that every time you use mi impute the random number generator uses up the generated numbers such that the next time you use mi impute during that session the results will differ from those of the first run even though r(seed) was still set at the same number.
I figured this would be easy enough to overcome, just a little time consuming. However, I have run the mi impute code 40 times- each time producing different values in the imputed data- and still have not reproduced the original imputed data. I may have been much more green then, but I highly doubt I tried to impute this 40 times before getting it right.
Does anybody know why r(seed) command isn't working to enable me to reproduce my imputed data? I never set c(seed) so starting a new session of Stata- or setting the seed to 123456789- should be all I need to make sure I begin with the same starting point, right?
I need to be able to reproduce this data precisely so that I can continue this project at a different institution that I am going to (the data is secure, so I can't just transport it), so any help on how I might overcome this issue is GREATLY appreciated. Thank you!
A little more info about the first time I did this:
-This was the first time I had used mi impute, so I believe I probably ran a few imputations that didn't work out before nailing down the code and finally getting the results I kept. This presents a slight obstacle in that every time you use mi impute the random number generator uses up the generated numbers such that the next time you use mi impute during that session the results will differ from those of the first run even though r(seed) was still set at the same number.
I figured this would be easy enough to overcome, just a little time consuming. However, I have run the mi impute code 40 times- each time producing different values in the imputed data- and still have not reproduced the original imputed data. I may have been much more green then, but I highly doubt I tried to impute this 40 times before getting it right.
Does anybody know why r(seed) command isn't working to enable me to reproduce my imputed data? I never set c(seed) so starting a new session of Stata- or setting the seed to 123456789- should be all I need to make sure I begin with the same starting point, right?
I need to be able to reproduce this data precisely so that I can continue this project at a different institution that I am going to (the data is secure, so I can't just transport it), so any help on how I might overcome this issue is GREATLY appreciated. Thank you!
Comment