Specialized on Data processing, Data management Implementation plan, Data Collection tools - electronic and paper base, Data cleaning specifications, Data extraction, Data transformation, Data load, Analytical Datasets, and Data analysis. BJ Data Tech Solutions teaches on design and developing Electronic Data Collection Tools using CSPro, and STATA commands for data manipulation. Setting up Data Management systems using modern data technologies such as Relational Databases, C#, PHP and Android.
Tuesday, September 3, 2019
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.
No comments:
Post a Comment