file miest.ster already exists
I have been trying to run some imputation modelling and am running into this error code when I try and perform MI.
file miest.ster already exists
Have you come across this before.
The coding I am using is as follows:
to randomly remove 10% of the data on BMI (i.e 7 obs from n=68)
set seed 1234 forvalues i = 1/5 {
gen bmi_`i' = BMI
gen double shuffle = runiform()
sort shuffle
replace bmi_`i' = . in 1/7
drop shuffle
}
Then:
forvalues i = 1/1 { mi set wide
mi register imputed bmi_`i'
mi impute reg bmi_`i' OVERALL_6M_Satisfaction ASA Age PR_EuroQolScore Pre_OKS_Total, add(10)
mi estimate, saving(miest) dots: logistic OVERALL_6M_Satisfaction ASA Age PR_EuroQolScore Pre_OKS_Total bmi_`i'
}
This is fine as the MI works.
BUT, when I try and redo the programme, but this time randomly removing 20% of BMI data, I encounter the error code:
file miest.ster already exists
Have you come across this problem before? Is this an issue with stata using temp folders and if so, how do I get around this? Any advice would be really helpful, if you are able to.
0 Response to file miest.ster already exists
Post a Comment