Message/Author |
|
|
I’m trying to conduct an EFA in Mplus using data that I have multiply imputed in an external program, and also accounting for complex survey design (stratum, cluster, weights). I have tried using the data as both a .dat file and a .txt file, and also using single concatenated datasets as well as 10 separate data files. I continue to get error messages, most often stating something like: *** ERROR in DATA command A data file for TYPE=MONTECARLO or TYPE=IMPUTATION cannot be found. Check that this file exists: sampleid secu str finalp1wt HR39 _mult_ HR41A_r HR41B_r HR41C_r HR41D_r HR41E_r HR41 My code is below. Do you have any suggestions? Or do you think the problem is in what I’m doing in SAS to export the file? Thank you. DATA: File = imputed_forMplus_V6.dat; Type = Imputation; VARIABLE: Names are XXX; usevariables are XXX; idvariable = sampleid; missing = .; STRATIFICATION = str; CLUSTER = secu; WEIGHT = sampwt; SUBPOPULATION = HR39 EQ 1; ANALYSIS: Type = COMPLEX; MODEL: SoJ by HR41A_r HR41B_r HR41C_r HR41D_r HR41E_r HR41F_r (*1); |
|
|
The imputed data sets should be in separate files. The file named using the FILE option should contain a list of the data set names. See Example 13.13. |
|
|
When I use this code: DATA: File = IMPUTE_SEP1.txt IMPUTE_SEP2.txt IMPUTE_SEP3.txt IMPUTE_SEP4.txt IMPUTE_SEP5.txt IMPUTE_SEP6.txt IMPUTE_SEP7.txt IMPUTE_SEP8.txt IMPUTE_SEP9.txt IMPUTE_SEP10.txt; Type = Imputation; I get the following error message: "*** ERROR in DATA command The file specified for the FILE option cannot be found. Check that this file exists: IMPUTE_SEP1.txt IMPUTE_SEP2.txt IMPUTE_SEP3.txt IMPUTE_SEP4.txt IMPUTE_SEP5.txt IMPU" |
|
|
Please see Example 13.13. The data set names are not listed in the input. They are in a file that is referred to using the FILE option. This is described in Example 13.13. |
|
|
I feel like i might be missing something very basic. I have 5 individual imputation sets. They are in a folder called "imputedsets" on my desktop. ...so when i write the File command, should i type: DATA: File = "C:\Desktop\imputedsets" This does not work when i do this. |
|
|
See page 461 of the V8 UG on our website. It shows and discusses how to read in multiple imputation data. |
|
Back to top |