How to automatically run several impu... PreviousNext
Mplus Discussion > Structural Equation Modeling >
Message/Author posted on Wednesday, June 06, 2012 - 7:44 am
Is it possible to have a master mplus .imp file that calls up a number of .imp files which define different SEM model? If so, how do I specify it?
 Linda K. Muthen posted on Wednesday, June 06, 2012 - 8:33 am
One way to do this is to use a DOS bat file. Go to the command prompt and create a file with the following commands:

call Mplus inp1.inp
call Mplus inp2.inp

The file extension should be .bat, for example, input.bat. To run the file type input at the command prompt. posted on Wednesday, June 06, 2012 - 9:22 am
Thanks Linda - It works perfectly! posted on Thursday, June 14, 2012 - 2:22 am
Could you do something similar when running the Linux version? I had to switch as I am on a new server...

Many thanks
 Linda K. Muthen posted on Thursday, June 14, 2012 - 11:30 am
Yes, you can create a text file with a list of commands to execute. Then you have to make the file an executable by using the "chmod" command. That makes the file an executable and then you can run it at the prompt and it will execute all the commands in the file. posted on Friday, June 15, 2012 - 3:04 am
Thank you for your prompt reply.
 Stephus Daus posted on Sunday, June 01, 2014 - 3:57 am
How about nested input files? In a complex setup you don't want to repeat all the changes for each file. I.e. is it possible to place all the Data: Variable: and Analysis: in a master file, and the Model: in the model files? [if not, I suggest put it on your to-do list]
 Linda K. Muthen posted on Sunday, June 01, 2014 - 10:00 am
This feature is not currently available. We will add your request to our list.
Back to top
Add Your Message Here
Username: Posting Information:
This is a private posting area. Only registered users and moderators may post messages here.
Options: Enable HTML code in message
Automatically activate URLs in message