Growth Model Questions PreviousNext
Mplus Discussion > Growth Modeling of Longitudinal Data >
 EFried posted on Thursday, December 15, 2011 - 3:59 pm
Here's the syntax:

Classes = c(3);
usevar = phq_t0 phq_t1 phq_t2 phq_t3 phq_t4;

Analysis: type = MIXTURE missing;
Starts = 10 2;

i s | phq_t0@0 phq_t1@1 phq_t2@2 phq_t3@3 phq_t4@4;

Output: sampstat standardized tech1;

TYPE = plot1 plot2 plot3;

series = phq_t0 (0) phq_t1 (1) phq_t2 (2) phq_t3 (3) phq_t4 (4);

(1) It works, just "normal" warnings (type=missing is standard), and says plots available are (list of plots), however I cannot see the graph or plot menu in MPLUS. I read the MPLUS manual and it sounds like I could access this menu with alt-v or by the menu "graphs", but this menu doesn't exist. MPLUS editor says "version 100.0".
(2) The button "undo" doesn't work when I change syntax, neither do any of the hotkeys (Mac). I wonder what e.g. "^z" means as shortcut? Neither alt nor ctrl nor shift nor apple key nor fn work.

 Linda K. Muthen posted on Friday, December 16, 2011 - 9:21 am
The Mac and Linux versions do not have the plot capabilities of the Windows version. Instead, the GH5 file produced by the PLOT command can be read and plots made by the R program using the HDF5 package. Go to the following link for R functions for plots:
 EFried posted on Friday, December 16, 2011 - 11:33 am
Is there any simple overview as to how to install plugins into R (the "HDF5 package" sounds like a plugin)? I have not used R before.

 EFried posted on Friday, December 16, 2011 - 11:47 am
(I am new to MAC and don't know unix commands; I am new to R and don't know R commands; I am in another country and can install programs, but have no root or sudo access to this work computer.

I was not aware that you need to have all these things in order to get a simple scatterplot in MPLUS ...)
 Linda K. Muthen posted on Friday, December 16, 2011 - 2:07 pm
Besides the link I gave you, see the following two links. I'm not sure how much they cover R.
 EFried posted on Saturday, December 17, 2011 - 1:42 pm
Thank you!
 EFried posted on Monday, December 19, 2011 - 10:13 am
"Estimated means and observed individual growth trajectories for each latent class."

I want to display this in R (I am using MPLUS on Mac).
This gives a good overview, however I don't see a way of building the plot mentioned above.

Thank you for the help
 Linda K. Muthen posted on Monday, December 19, 2011 - 3:35 pm
It looks like estimated means are available at the link

1. mplus.plot.estimated_means

Description: Plot the estimated means for the given series.

But I don't see observed individual growth trajectories.
 EFried posted on Monday, December 19, 2011 - 4:00 pm
Yes, I am looking for the individual trajectories, I think it is very important to look at this to try to get an idea of the data.

Maybe the list on the website wasn't complete? This is the first time I work with plots on Mac in MPLUS.

Is there another way to create this graph?
 Linda K. Muthen posted on Monday, December 19, 2011 - 4:28 pm
The Mac plots are limited. Not the full set that is available on Windows is available on the Mac.
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