Savedata and TECH4 PreviousNext
Mplus Discussion > Structural Equation Modeling >
Message/Author
 Roger Brown posted on Friday, November 09, 2018 - 8:47 am
I just recently noticed that I cannot seem to save TECH4 results anymore. It used to work for me? If I run this without the SAVEDATA command I get the TECH4 output, but when I add it, as shown below it blows up? Ideas?

TITLE: Power calculation for Intervention model
Step 1: Computing the population means
and covariance matrix

DATA: FILE IS artifica.dat;
TYPE IS MEANS COVARIANCE;
NOBSERVATIONS = 500;

VARIABLE: NAMES ARE y1-y4 x1-x5;

MODEL:
y1 on y2@.4 y3@.4 x4@.4 x5@.4;
y2 on x1@.4 x2@.4 y4@.4 x3@.4 x4@.4 x5@.4;
y3 on x4@.4 x5@.4;
y4 on x3@.4 x4@.4 x5@.4;

OUTPUT: STANDARDIZED RESIDUAL tech4;
SAVEDATA:
tech4 is t4.txt;
 Bengt O. Muthen posted on Friday, November 09, 2018 - 12:59 pm
I don't see any latent variables in your model. Please send the input and data for the run that blows up.
 Bengt O. Muthen posted on Friday, November 09, 2018 - 2:46 pm
Also, which version are you using?
 Roger Brown posted on Friday, November 16, 2018 - 6:42 am
No latent variables, here is the code which I have used many times in the past:

TITLE: Power calculation for Intervention model
Step 1: Computing the population means
and covariance matrix

DATA: FILE IS artifica.dat;
TYPE IS MEANS COVARIANCE;
NOBSERVATIONS = 500;

VARIABLE: NAMES ARE y1-y4 x1-x5;

MODEL:
y1 on y2@.4 y3@.4 x4@.4 x5@.4;
y2 on x1@.4 x2@.4 y4@.4 x3@.4 x4@.4 x5@.4;
y3 on x4@.4 x5@.4;
y4 on x3@.4 x4@.4 x5@.4;

OUTPUT: STANDARDIZED RESIDUAL tech4;
SAVEDATA:
tech4 is t4.txt;
--------------

Using Version 8.2
 Roger Brown posted on Friday, November 16, 2018 - 7:04 am
Follow up:

If I remove the SAVEDATA command, I do obtain the Tech4 estimates of means and covariances in the output. I would just like to be able to write out these into a matrix using the SAVEDATA command. I have done this in the past, but now starting to question my memory, if it worked for a path structure versus a latent structure? Thanks.

Roger
 Bengt O. Muthen posted on Friday, November 16, 2018 - 11:12 am
We don't see this issue in our examples. Please send the input and data to Support.
 Roger Brown posted on Friday, November 16, 2018 - 12:50 pm
The input matrix is simply(artifica.dat):
---------------------
0 0 0 0 0 0 0 0 0
1
0 1
0 0 1
0 0 0 1
0 0 0 0 1
0 0 0 0 0 1
0 0 0 0 0 0 1
0 0 0 0 0 0 0 1
0 0 0 0 0 0 0 0 1
---------------------
The run stream is:
TITLE: Power calculation for Intervention model
Step 1: Computing the population means
and covariance matrix

DATA: FILE IS artifica.dat;
TYPE IS MEANS COVARIANCE;
NOBSERVATIONS = 500;

VARIABLE: NAMES ARE y1-y4 x1-x5;

MODEL:
y1 on y2@.4 y3@.4 x4@.4 x5@.4;
y2 on x1@.4 x2@.4 y4@.4 x3@.4 x4@.4 x5@.4;
y3 on x4@.4 x5@.4;
y4 on x3@.4 x4@.4 x5@.4;

OUTPUT: STANDARDIZED RESIDUAL tech4;
SAVEDATA:
tech4 is t4.txt;
---------------------------------
If I remove the SAVEDATA, I obtain tech4, but cannot seem to write it out ? Thanks.
 Bengt O. Muthen posted on Sunday, November 18, 2018 - 10:57 am
We have found a glitch in the save format. A workaround is to say

TECH4 = t4.txt;
FORMAT (TECH4) F5.3;
 Roger Brown posted on Sunday, November 18, 2018 - 1:25 pm
Thanks so much for the work around.

Roger
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: