File: DefinitionMeans.mx

package info (click to toggle)
r-cran-openmx 2.21.1%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 14,412 kB
  • sloc: cpp: 36,577; ansic: 13,811; fortran: 2,001; sh: 1,440; python: 350; perl: 21; makefile: 5
file content (23 lines) | stat: -rw-r--r-- 517 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
! Test of definition variable example for OpenMx
! Definition variable scored 0 or 1
! Groups differ in their means
!
#ngroups 1
Title: Group 1
 Data NInput=3
 Rectangular file=../xydefmeans.rec
 Labels X Y Def
 Definition Def ;
 Begin Matrices;
	S Symm 2 2 Free ! for estimated covariance matrix
	D Full 1 2 ! for definition variables 
	B Full 1 2 Free ! for regression coefficients on definition vars
	M Full 1 2 Free
 End Matrices;
    Specify D Def Def
    Matrix S 1.5 0 2.5

 Means M + B.D;
 Covariance S;

End