File: one.mxo

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 (241 lines) | stat: -rw-r--r-- 5,277 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
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
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
  
  ** 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 2
 
 
 The following MX script lines were read for group    1
 
 #NGROUPS 2
  Note: #NGroup set number of groups to           2
  
 ABO single locus
  Data NInput=1
  Begin Matrices;
   P Full 1 1 Free ! allele freq 1
   Q Full 1 1 Free ! allele freq 2
   R Full 1 1 Free ! allele freq 3
   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 Q 1 1 R 1 1
  Matrix P .6
  Ma Q .3
  Ma R .1
 !Start .333 P 1 1 Q 1 1 R 1 1
  Begin Algebra;
   E = P*(P+D*R)_
       Q*(Q+D*R)_
       D*P*Q_
       R*R;
 F=\sum(O)@E;
  End Algebra;
 
  Compute -\sum(\ln(E).O);
  Option User-Defined
 End Group
 
 
 The following MX script lines were read for group    2
 
 
 Constraint Group
  Constraint NI=1
  Begin Matrices = (P1 Q1 R1 I1)
  End Matrices;
 
  Constraint I = P + Q + R;
  Option RS
 End Group
  
  
  PARAMETER SPECIFICATIONS
  
  GROUP NUMBER:           1
  
ABO single 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 FULL matrix of order    1 by    1
    1
 1  2
  
  MATRIX R
 This is a FULL matrix of order    1 by    1
    1
 1  3
  
  GROUP NUMBER:           2
  
Constraint Group                                                                                                                
  
  MATRIX I
 This is a UNIT matrix of order    1 by    1
  
  MATRIX P
 This is a FULL matrix of order    1 by    1
    1
 1  1
  
  MATRIX Q
 This is a FULL matrix of order    1 by    1
    1
 1  2
  
  MATRIX R
 This is a FULL matrix of order    1 by    1
    1
 1  3
  
  Mx starting optimization; number of parameters =            3
  *** WARNING! ***
  
  I am not sure I have found a solution that satisfies
           Kuhn-Tucker conditions for a minimum.
           NAG's IFAIL parameter is            1
  
 We probably have a minimum here, but you might consider trying different
 starting values.  You can randomize these with TH=n on  the OU line, where
 n is the number of times you wish to do this.
 I STRONGLY recommend BOundaries to be set if you use TH
  
  
  
  MX PARAMETER ESTIMATES
  
  GROUP NUMBER:           1
  
ABO single 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*R)_Q*(Q+D*R)_D*P*Q_R*R]
          1
 1   0.4116
 2   0.1936
 3   0.0907
 4   0.3042
  
  MATRIX F
 This is a computed FULL matrix of order    4 by    1
  [=\SUM(O)@E]
             1
 1    206.6025
 2     97.1783
 3     45.5349
 4    152.6842
  
  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.2945
  
  MATRIX Q
 This is a FULL matrix of order    1 by    1
          1
 1   0.1540
  
  MATRIX R
 This is a FULL matrix of order    1 by    1
          1
 1   0.5515
  
  GROUP NUMBER:           2
  
Constraint Group                                                                                                                
  
  MATRIX I
 This is a UNIT matrix of order    1 by    1
  
  MATRIX P
 This is a FULL matrix of order    1 by    1
          1
 1   0.2945
  
  MATRIX Q
 This is a FULL matrix of order    1 by    1
          1
 1   0.1540
  
  MATRIX R
 This is a FULL matrix of order    1 by    1
          1
 1   0.5515
  
  CONSTRAINT VALUES (should be near zero)
               1
 1   -3.6859E-14
  
  *** WARNING! ***
  Minimization may not be successful.  See above
  CODE GREEN - it probably was OK
  
 Your model has    3 estimated parameters and      1 Observed statistics
 Observed statistics include   1 constraints.
  
 User defined function value =   627.104
 '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.00
  
 Total number of warnings issued:           2
 ______________________________________________________________________________
 
  
 ______________________________________________________________________________