Syntax for LPA PreviousNext
Mplus Discussion > Latent Variable Mixture Modeling >
Message/Author
 learningmplus posted on Tuesday, October 15, 2013 - 9:43 am
Hi!

I would like to ask for help with running LPA. I am trying to run the syntax below but I get an error. When I include
file is JADP.dat to upload the data, I get an error that the file does not exist.

When I try to load the data with
file is "C:\Users\LM\Desktop\LPA.dat";
it tells me that the program cannot run a multiple group analysis with mixture command.

What I would like to do is to correct the syntax below and get it to work. I would appreciate your help in correcting the syntax.

Thank you!


title:
2-Class Latent Profile Analysis
of Peer Nominations Wave 2 Data;
data:
file is JADP.dat;
file is "C:\Users\LM\Desktop\LPA.dat";
variable:
names=x1-x10;
classes=c(2);
analysis:
type=mixture;
PLOT:
TYPE=PLOT3;
SERIES IS x1(1) x2(2) x3(3) x4(4) x5(5) x6(6) x7(7) X8(8) x9(9) x10 (10);
model:
OUTPUT:
TECH1 TECH5 TECH10;
SAVEDATA:
FILE IS myfile2c.dat;
SAVE = CPROBABILITIES;
 Linda K. Muthen posted on Tuesday, October 15, 2013 - 10:43 am
What is the name of the data file? Is it jadp.dat or lpa.dat?
 learningmplus posted on Tuesday, October 15, 2013 - 10:56 am
It is LPA.dat
I just realized the use of both names.

Now, I tried to run it based on the lpa.dat which I saved on my desktop. It is still not working. How can I fix it?

** ERROR in DATA command
The file specified for the FILE option cannot be found. Check that this
file exists: LPA.dat


title:
2-Class Latent Profile Analysis
of Peer Nominations Wave 2 REAL Data;
data: file is LPA.dat;
variable:
names=x1-x10;
classes=c(2);
analysis:
type=mixture;
PLOT:
TYPE=PLOT3;
SERIES IS x1(1) x2(2) x3(3) x4(4) x5(5) x6(6) x7(7) X8(8) x9(9) x10 (10);
model:
OUTPUT:
TECH1 TECH5 TECH10;
PLOT:
TYPE=PLOT3;
SERIES IS x1(1) x2(2) x3(3) x4(4) x5(5) x6(6) x7(7) X8(8) x9(9) x10 (10);
SAVEDATA:
FILE IS myfile2c.dat;
SAVE = CPROBABILITIES;
 Linda K. Muthen posted on Tuesday, October 15, 2013 - 11:31 am
Search your hard drive for lap.dat to be sure it does not have another extension. If it is not in the directory you are running from, use the full path name.
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: