1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71
|
#NGroups 1
#define latent 2
#define meas 6
#define m 8
Title Two-Factor Model
Data NObservations=500 NInput=9
Rectangular File=myFAData.txt
Labels x1 x2 x3 x4 x5 x6 y1 y2 y3
Select x1 x2 x3 y1 y2 y3 ;
Begin Matrices;
A Full 8 8 ! RAM specification matrices
S Symm 8 8 !
F Full meas 8 !
I Iden m m ! Identity Matrix
M Full 1 m ! Means matrix
End Matrices;
Matrix A
0 0 0 0 0 0 1 0
0 0 0 0 0 0 1 0
0 0 0 0 0 0 1 0
0 0 0 0 0 0 0 1
0 0 0 0 0 0 0 1
0 0 0 0 0 0 0 1
0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0
Specify A
0 0 0 0 0 0 0 0
0 0 0 0 0 0 1 0
0 0 0 0 0 0 2 0
0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 3
0 0 0 0 0 0 0 4
0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0
Matrix S
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 .5 1
Specify S
5
0 6
0 0 7
0 0 0 8
0 0 0 0 9
0 0 0 0 0 10
0 0 0 0 0 0 11
0 0 0 0 0 0 19 12
Matrix F
1 0 0 0 0 0 0 0
0 1 0 0 0 0 0 0
0 0 1 0 0 0 0 0
0 0 0 1 0 0 0 0
0 0 0 0 1 0 0 0
0 0 0 0 0 1 0 0
Specify M
13 14 15 16 17 18 0 0
Matrix M
1 1 1 1 1 1 0 0
Covariance F & ((I-A)~ & S) ; ! RAM formula
Means F * (I-A)~ * M'; ! Means
Options RS
End
|