Read in imputed Data sets
Posted: Sat Jan 17, 2015 2:32 pm
Hey guys,
I have a problem reading in my imputed data sets. The multiple imputation was done in R with the package MICE. In order to read in the multiple imputed data I saved all data.frames as separate files named imputeiter100.dta, imputeiter200.dta, ...
Then I generated a file impvals.txt in the same directory. It has the following structure:
imputed_variable_name_1<WHITESPACE>imputed_variable_name_2<WHITESPACE> ... <NEWLINE>
Number_of_cases<NEWLINE>
Number_of_imputed_datasets<NEWLINE>
imputed_dataset_name_1<TAB>imputed_dataset_name_2<TAB> ... <NEWLINE>
When I try to read this file in MLWin(2.27) with the IRETRieve command, MLWin crashes without any error message.
Any Ideas?
Best regards
Linus
I have a problem reading in my imputed data sets. The multiple imputation was done in R with the package MICE. In order to read in the multiple imputed data I saved all data.frames as separate files named imputeiter100.dta, imputeiter200.dta, ...
Then I generated a file impvals.txt in the same directory. It has the following structure:
imputed_variable_name_1<WHITESPACE>imputed_variable_name_2<WHITESPACE> ... <NEWLINE>
Number_of_cases<NEWLINE>
Number_of_imputed_datasets<NEWLINE>
imputed_dataset_name_1<TAB>imputed_dataset_name_2<TAB> ... <NEWLINE>
When I try to read this file in MLWin(2.27) with the IRETRieve command, MLWin crashes without any error message.
Any Ideas?
Best regards
Linus