EFA, external imputation, complex sur... PreviousNext
Mplus Discussion > Missing Data Modeling >
Message/Author
 Hannah Carliner posted on Friday, September 13, 2013 - 8:47 am
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);
 Linda K. Muthen posted on Friday, September 13, 2013 - 10:27 am
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.
 Hannah Carliner posted on Friday, September 13, 2013 - 11:28 am
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"
 Linda K. Muthen posted on Friday, September 13, 2013 - 3:39 pm
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.
Back to top
Add Your Message Here
Post:
Username: Posting Information:
This is a private posting area. Only registered users and moderators may post messages here.
Password:
Options: Enable HTML code in message
Automatically activate URLs in message
Action: