Intro to Mx Scripts Groups Data n Calculation

  • Slides: 13
Download presentation
Intro to Mx Scripts

Intro to Mx Scripts

Groups Data n Calculation n Constraint n

Groups Data n Calculation n Constraint n

Group Structure n n n n Title Reading Data Matrices Declaration Assigning Specifications/ Values

Group Structure n n n n Title Reading Data Matrices Declaration Assigning Specifications/ Values Matrix Algebra Means / Covariances Options End

Additional Commands ! Comments n #Ngroups <number of groups> n #define <name> <number> n

Additional Commands ! Comments n #Ngroups <number of groups> n #define <name> <number> n #define <$name> <string> n

Matrices Declaration n Begin Matrices; <Name> <type> <rows> <columns> n… n n End Matrices;

Matrices Declaration n Begin Matrices; <Name> <type> <rows> <columns> n… n n End Matrices; Matrix Types: Mx manual p. 58 n Matrices = Group <number> n

Matrix Algebra n Begin Algebra; <matrix name> = <matrix formula>; n… n n End

Matrix Algebra n Begin Algebra; <matrix name> = <matrix formula>; n… n n End Algebra; Matrix Operations: Mx Manual p. 61 n Matrix Functions: Mx Manual p. 66 n

MZ Twins Observed Covariance Expected Covariance Variance Twin 1 Covariance Variance Twin 2 a

MZ Twins Observed Covariance Expected Covariance Variance Twin 1 Covariance Variance Twin 2 a 2+c 2+e 2+d 2 a 2+c 2+e 2+d 2

DZ Twins Observed Covariance Expected Covariance Variance Twin 1 Covariance Variance Twin 2 a

DZ Twins Observed Covariance Expected Covariance Variance Twin 1 Covariance Variance Twin 2 a 2+c 2+e 2+d 2 . 5 a 2+c 2+. 25 d 2 a 2+c 2+e 2+d 2

1. 00 / 0. 50 [H] 1. 00 / 0. 25 [Q] 1. 00

1. 00 / 0. 50 [H] 1. 00 / 0. 25 [Q] 1. 00 1. 00 A 1 C 1 E 1 D 1 A 2 C 2 E 2 D 2 a [X] c [Y] e [Z] d [W] P 1 a [X] c [Y] e [Z] d [W] P 2

Path Diagram to Matrices Path Coefficient a c e d Matrix Name X Y

Path Diagram to Matrices Path Coefficient a c e d Matrix Name X Y Z W Variance Component c 2 e 2 d 2 C E D a 2 Matrix Name A

MZ Twins into Mx Expected Covariance Matrix Formulation a 2+c 2+e 2+d 2 a

MZ Twins into Mx Expected Covariance Matrix Formulation a 2+c 2+e 2+d 2 a 2+c 2+e 2+d 2 A+C+E+D A+C+D A+C+E+D

Path Diagram to Matrices Path Coefficient am af cm cf em ef dm df

Path Diagram to Matrices Path Coefficient am af cm cf em ef dm df Matrix Name X L Y M Z N W O Variance Component c 2 m c 2 f e 2 m e 2 f d 2 m d 2 f C F E J D K a 2 m a 2 f Matrix Name A G

DZos Twins into Mx Exp. a 2 m+c 2 m+e 2 m+d am*af’+cm*cf’+d Covar.

DZos Twins into Mx Exp. a 2 m+c 2 m+e 2 m+d am*af’+cm*cf’+d Covar. 2 m m*df’ af*am’+cf*cm’+ df*dm’ Matrix A+C+E+D Form. a 2 f+c 2 f+e 2 f+d 2 f H@(X*L’)+(Y*M’) +Q@(W*O’) H@(L*X’)+(M*Y’) G+F+J+K +Q@(O*W’)