#define nvar 1 ! n dependent variables per individual #define ndef 2 ! n covariates per individual G1: Singleton data - Regression Data Ninput_vars=8 NGroups=1 missing=-1 ! Missing values Rectangular file=wednesday.dat ! read raw data Labels ntrid zygMZDZ age1 sekse1 AQ1 age2 sekse2 AQ2 select age1 sekse1 AQ1 ; Definition age1 sekse1 ; Begin matrices; ! intercept ! aka grand mean, aka intercept, aka observed variable, akak mean C Full 1 nvar free ! independent variable ! aka observed covariates for individual X Full 1 ndef fix ! beta ! aka covariate effect B Full ndef 1 free ! variance V Full nvar nvar free End matrices; ! tell Mx to put the independent variables in the X matrix Specify X age1 sekse1 ; ! start values Start 95 C 1 1 Start 106 V 1 1 Start .5 B 1 1 Start 2 B 2 1 Begin Algebra; ! Write out the regression equation for the observed (dependent) variable - Y Y = X*B + C ; End Algebra; Means Y ; ! means model Covariances V ; ! variance/covariance model Option multiple Option issat end