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 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173
|
** Mx startup successful **
**Mx-OSX version 1.69**
!
! Maximum Likelihood Example
!
! Bernstein data on ABO blood-groups
! c.f. Edwards, AWF (1972) Likelihood. Cambridge Univ Press, pp. 39-41
!
#ngroups 1
The following MX script lines were read for group 1
#NGROUPS 1
Note: #NGroup set number of groups to 1
ABO two locus
Data NInput=1
Begin Matrices;
P Full 1 1 Free ! allele freq loc 1
S Full 1 1 Free ! allele freq loc 2
I Unit 1 1
D Full 1 1
O Full 4 1 ! observed data
End Matrices;
Matrix D 2
Matrix O 212 103 39 148
Bound 0 1 P 1 1 S 1 1
Start .5 P 1 1 S 1 1
Begin Algebra;
Q = I - P;
T = I - S;
E = (P*P+D*P*Q)*T*T_
(Q*Q)*(S*S+D*S*T)_
(P*P+D*P*Q)*(S*S+D*S*T)_
(Q*Q)*(T*T);
F=\sum(O)@E;
End Algebra;
Compute -\sum(\ln(E).O);
Option User-Defined
End
PARAMETER SPECIFICATIONS
GROUP NUMBER: 1
ABO two locus
MATRIX D
This is a FULL matrix of order 1 by 1
It has no free parameters specified
MATRIX E
This is a computed FULL matrix of order 4 by 1
It has no free parameters specified
MATRIX F
This is a computed FULL matrix of order 4 by 1
It has no free parameters specified
MATRIX I
This is a UNIT matrix of order 1 by 1
MATRIX O
This is a FULL matrix of order 4 by 1
It has no free parameters specified
MATRIX P
This is a FULL matrix of order 1 by 1
1
1 1
MATRIX Q
This is a computed FULL matrix of order 1 by 1
It has no free parameters specified
MATRIX S
This is a FULL matrix of order 1 by 1
1
1 2
MATRIX T
This is a computed FULL matrix of order 1 by 1
It has no free parameters specified
Mx starting optimization; number of parameters = 2
MX PARAMETER ESTIMATES
GROUP NUMBER: 1
ABO two locus
MATRIX D
This is a FULL matrix of order 1 by 1
1
1 2.0000
MATRIX E
This is a computed FULL matrix of order 4 by 1
[=(P*P+D*P*Q)*T*T_(Q*Q)*(S*S+D*S*T)_(P*P+D*P*Q)*(S*S+D*S*T)_(Q*Q)*(T*T)]
1
1 0.3586
2 0.1414
3 0.1414
4 0.3586
MATRIX F
This is a computed FULL matrix of order 4 by 1
[=\SUM(O)@E]
1
1 180.0000
2 71.0000
3 71.0000
4 180.0001
MATRIX I
This is a UNIT matrix of order 1 by 1
MATRIX O
This is a FULL matrix of order 4 by 1
1
1 212.0000
2 103.0000
3 39.0000
4 148.0000
MATRIX P
This is a FULL matrix of order 1 by 1
1
1 0.2929
MATRIX Q
This is a computed FULL matrix of order 1 by 1
[=I-P]
1
1 0.7071
MATRIX S
This is a FULL matrix of order 1 by 1
1
1 0.1532
MATRIX T
This is a computed FULL matrix of order 1 by 1
[=I-S]
1
1 0.8468
Your model has 2 estimated parameters and 0 Observed statistics
User defined function value = 646.972
'Degrees of freedom' >>>>>>>>>>>>>>>> -2
This problem used 0.0% of my workspace
Task Time elapsed (DD:HH:MM:SS)
Reading script & data 0: 0: 0: 0.00
Execution 0: 0: 0: 0.00
TOTAL 0: 0: 0: 0.01
Total number of warnings issued: 0
______________________________________________________________________________
______________________________________________________________________________
|