Rob White posted on Monday, September 24, 2007 - 10:46 am
I generated X multiply imputed datasets from outside Mplus. That is, the missingness has already been taken care of outside of Mplus. I want to estimate my structural equation models on these X datasets and use Mplus to make the necessary corrections to the coefficient estimates and standard errors. How do I do this? Thanks.
Rob White posted on Tuesday, September 25, 2007 - 12:51 pm
Thanks very much. One question: why do my MPlus standard errors differ from the standard errors I get from using the ice commands in Stata?
Mplus Stata est. s.e. est. s.e. -1.05 .025 -.1046 .0264 0.837 .089 .8370 .0945
Stata documentation indicates that it uses the same Rubin rules for correcting the errors as referenced in Schafer (1997). I've confirmed that the Stata calculation is correct with hand calculations. Is there some subtle difference I'm not understanding? Since I'm using Mplus to estimate only the model, rather than generate the MI data and estimate the model, the datasets are identical across both programs.
Rob White posted on Tuesday, September 25, 2007 - 12:53 pm
Please note that there is a decimal error in the Stata estimate. -.1046 should actually read -1.046
Rob White posted on Tuesday, September 25, 2007 - 1:09 pm
Also, are the corrected estimates and errors available in the output coming from SAVEDATA, RESULTS ARE ? I cannot find them in there. Thanks.
Search for implist.dat to see if it is found. It may have a hidden extension.
Averdijk posted on Saturday, April 18, 2015 - 12:08 pm
Many thanks for your answer. No, 'implist.dat' is not found by Windows Explorer. But 'implist.dat' does not exist, as I created separate files named 'imp1.dat', 'imp2.dat' etc. My understanding was that instead of specifying something like:
DATA: file is D:\imp1.dat, D:\imp2.dat
one would need to say:
DATA: file is D:\implist.dat
where MPlus would understand that the 'list' in 'implist' means '1', '2', etc. Is this not correct? If not, how do I instruct MPlus which files to use?
You must have a file that contains the names of the data sets. See Example 13.13.
Averdijk posted on Monday, April 20, 2015 - 5:00 am
Thanks a lot. I now have a variable called 'implist' that contains the values 'imp1.dat', 'imp2.dat' etc. for each case. However, I still get error messages (a long list of 'Errors for replication' and 'the file cannot be found'). I experimented with different names for the values of 'implist' (e.g., 'imp1', 'imp2') and string and numerical versions, but get the same error message. I tried calling the implist variable 'implist.dat', but this exceeds 8 characters. When I omit 'type=imputation' I get no error Messages.
You don't need a variable called implist. You need a data set that contains the names of the imputed data sets. Look at Example 13.13.
Michelle Wu posted on Monday, February 05, 2018 - 11:59 am
Now I have a .dat file containing the following contents
imp1.dat imp2.dat imp3.dat imp4.dat imp5.dat
But Mplus kept giving me the error message: *** ERROR in DATA command A data file for TYPE=MONTECARLO or TYPE=IMPUTATION cannot be found. Check that this file exists: /Users/US data/imp1.dat imp2.dat imp3.dat imp4.
Could you let me know how could I solve this? Thank you very much.
Michelle Wu posted on Monday, February 05, 2018 - 12:02 pm
By the way, these five files were created and converted to Mplus readable format by Stata and each of them contained an imp*.inp in my source file. Could it be the problem with reading in the data in Mplus?
The data set names must be exactly the same as you show in the file specified using the FILE option. Be sure the path is correct also. If you can't see the problem, send the files and your license number to firstname.lastname@example.org.
Similar to one of the posters above, I am trying to save the results with the SAVEDATA command and multiply imputed datasets, but the results only seem to be saved separately for each replication number. Is there a way to obtain the results for the results combined across replications through the SAVEDATA command?