| 1 |
<?xml version="1.0" standalone="yes"?> |
| 2 |
<beast> |
| 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 |
<designMatrix id="fixedEffectsMatrix"> |
| 45 |
<parameter id="fixedEffectsMatrix.col1" value=" |
| 46 |
0 0 0 0 0 0 0 0 0 0 |
| 47 |
0 0 0 0 0 0 0 0 0 0 |
| 48 |
0 0 0 0 0 0 0 0 0 0 |
| 49 |
0 0 0 0 0 0 0 0 0 0 |
| 50 |
0 0 0 0 0 0 0 0 0 0 |
| 51 |
0 0 0 0 0 0 0 0 0 0 |
| 52 |
1 0 0 1 0 0 1 0 0 1 |
| 53 |
0 0 1 0 0 1 0 0 1 0 |
| 54 |
0 1 0 0 1 0 0 1 0 0 |
| 55 |
1 0 0 1 0 0 1 0 0 1 |
| 56 |
0 0 1 0 0 1 0 0 1 0 |
| 57 |
0 1 0 0 1 0 0 1 0 0 |
| 58 |
"/> |
| 59 |
<parameter id="fixedEffectsMatrix.col2" value=" |
| 60 |
0 0 0 0 0 0 0 0 0 0 |
| 61 |
0 0 0 0 0 0 0 0 0 0 |
| 62 |
0 0 0 0 0 0 0 0 0 0 |
| 63 |
0 0 0 0 0 0 0 0 0 0 |
| 64 |
0 0 0 0 0 0 0 0 0 0 |
| 65 |
0 0 0 0 0 0 0 0 0 0 |
| 66 |
0 1 0 0 1 0 0 1 0 0 |
| 67 |
1 0 0 1 0 0 1 0 0 1 |
| 68 |
0 0 1 0 0 1 0 0 1 0 |
| 69 |
0 1 0 0 1 0 0 1 0 0 |
| 70 |
1 0 0 1 0 0 1 0 0 1 |
| 71 |
0 0 1 0 0 1 0 0 1 0 |
| 72 |
"/> |
| 73 |
<parameter id="fixedEffectsMatrix.col3" value=" |
| 74 |
0 0 0 0 0 0 0 0 0 0 |
| 75 |
0 0 0 0 0 0 0 0 0 0 |
| 76 |
0 0 0 0 0 0 0 0 0 0 |
| 77 |
0 0 0 0 0 0 0 0 0 0 |
| 78 |
0 0 0 0 0 0 0 0 0 0 |
| 79 |
0 0 0 0 0 0 0 0 0 0 |
| 80 |
0 0 1 0 0 1 0 0 1 0 |
| 81 |
0 1 0 0 1 0 0 1 0 0 |
| 82 |
1 0 0 1 0 0 1 0 0 1 |
| 83 |
0 0 1 0 0 1 0 0 1 0 |
| 84 |
0 1 0 0 1 0 0 1 0 0 |
| 85 |
1 0 0 1 0 0 1 0 0 1 |
| 86 |
"/> |
| 87 |
</designMatrix> |
| 88 |
|
| 89 |
<parameter id="fixedEffects" value="0.0 0.0 0.0"/> |
| 90 |
|
| 91 |
<multivariateNormalPrior id="prior.FixedEffects"> |
| 92 |
<data> |
| 93 |
<parameter idref="fixedEffects"/> |
| 94 |
</data> |
| 95 |
<meanParameter> |
| 96 |
<parameter id="prior.fixedEffects.mean" value="0.0 0.0 0.0"/> |
| 97 |
</meanParameter> |
| 98 |
<precisionParameter> |
| 99 |
<matrixParameter id="prior.fixedEffects.precision"> |
| 100 |
<parameter value="0.1 0 0"/> |
| 101 |
<parameter value="0 0.1 0"/> |
| 102 |
<parameter value="0 0 0.1"/> |
| 103 |
</matrixParameter> |
| 104 |
</precisionParameter> |
| 105 |
</multivariateNormalPrior> |
| 106 |
|
| 107 |
|
| 108 |
<positiveDefiniteSubstitutionModel id="qModel"> |
| 109 |
|
| 110 |
|
| 111 |
|
| 112 |
|
| 113 |
|
| 114 |
<compoundSymmetricMatrix id="Qmat"> |
| 115 |
<diagonal> |
| 116 |
<parameter id="Q.diagonals" value="2.0 4.0 6.0" lower="0.0 0.0 0.0" upper="5 5 5"/> |
| 117 |
</diagonal> |
| 118 |
<offDiagonal> |
| 119 |
<parameter id="Q.offDiagonal" value="1.0"/> |
| 120 |
</offDiagonal> |
| 121 |
</compoundSymmetricMatrix> |
| 122 |
</positiveDefiniteSubstitutionModel> |
| 123 |
|
| 124 |
<multivariateWishartPrior id="prior.Qmat" df="3"> |
| 125 |
<scaleMatrix> |
| 126 |
<matrixParameter> |
| 127 |
<parameter id="prior.Qmat.col1" value="1.0 0.0 0.0"/> |
| 128 |
<parameter id="prior.Qmat.col2" value="0.0 1.0 0.0"/> |
| 129 |
<parameter id="prior.Qmat.col3" value="0.0 0.0 1.0"/> |
| 130 |
</matrixParameter> |
| 131 |
</scaleMatrix> |
| 132 |
<data> |
| 133 |
<matrixParameter idref="Qmat"/> |
| 134 |
</data> |
| 135 |
</multivariateWishartPrior> |
| 136 |
|
| 137 |
<multivariateOUModel id="mvouModel"> |
| 138 |
<substitutionModel idref="qModel"/> |
| 139 |
<data> |
| 140 |
<parameter id="data" value=" |
| 141 |
0.2003283 -0.1175399 -0.495224 -0.2102773 0.1194638 -0.06719125 -0.1759015 0.7098305 -0.4355417 -1.076124 1.178101 -0.1063588 0.5328371 0.258446 -0.4414638 0.4516082 0.4845915 -0.8338309 -1.230826 0.7157578 0.9805654 -1.582288 1.294086 1.401776 0.1940804 1.020139 0.3759328 -0.963149 1.004965 0.5642855 -0.922206 -0.0970064 0.2771372 -0.98529 0.2179910 -0.1416855 0.01212259 -0.924791 -0.4746347 0.3961324 -0.6898264 -0.7140323 0.8799123 -1.971231 -0.949452 -1.178875 -1.096063 -0.8048229 0.03412168 -0.613917 -0.9765478 1.087868 -1.328147 -0.5755731 1.807235 -0.8676068 -0.1912559 0.5367609 -1.414306 -0.3383538 |
| 142 |
2.970961 2.621953 6.46875 2.703340 3.935462 6.665829 3.240751 5.305008 5.988042 2.42064 6.28651 4.593892 2.575597 6.672941 4.239897 2.056275 5.340821 4.655235 1.702005 5.40884 4.743191 1.014196 5.082191 3.717593 2.16164 4.99367 3.599617 2.387909 5.163668 4.430757 2.696826 3.972642 5.076568 2.313012 3.664622 6.144293 2.265891 3.476659 6.194965 0.4528822 4.064888 6.476549 1.503711 3.37797 6.83493 2.536737 2.505550 7.304961 1.316139 3.785238 7.087207 1.476052 4.478142 6.194507 1.442140 4.351125 6.236665 0.957082 4.185977 6.514518 |
| 143 |
"/> |
| 144 |
</data> |
| 145 |
<times> |
| 146 |
<parameter id="time" value=" |
| 147 |
0 0 0 1 1 1 2 2 2 3 3 3 4 4 4 |
| 148 |
5 5 5 6 6 6 7 7 7 8 8 8 9 9 9 10 10 10 11 |
| 149 |
11 11 12 12 12 13 13 13 14 14 14 15 15 15 16 16 |
| 150 |
16 17 17 17 18 18 18 19 19 19 20 20 20 21 21 21 |
| 151 |
22 22 22 23 23 23 24 24 24 25 25 25 26 26 26 27 |
| 152 |
27 27 28 28 28 29 29 29 30 30 30 31 31 31 32 32 |
| 153 |
32 33 33 33 34 34 34 35 35 35 36 36 36 37 37 37 |
| 154 |
38 38 38 39 39 39 "/> |
| 155 |
|
| 156 |
|
| 157 |
|
| 158 |
|
| 159 |
|
| 160 |
|
| 161 |
|
| 162 |
|
| 163 |
|
| 164 |
|
| 165 |
|
| 166 |
|
| 167 |
|
| 168 |
</times> |
| 169 |
<design> |
| 170 |
<parameter id="design" value=" |
| 171 |
1 2 3 1 2 3 1 2 3 1 2 3 1 2 3 1 2 |
| 172 |
3 1 2 3 1 2 3 1 2 3 1 2 3 1 2 3 1 2 3 1 2 |
| 173 |
3 1 2 3 1 2 3 1 2 3 1 2 3 1 2 3 1 2 3 1 2 |
| 174 |
3 1 2 3 1 2 3 1 2 3 1 2 3 1 2 3 1 2 3 1 2 |
| 175 |
3 1 2 3 1 2 3 1 2 3 1 2 3 1 2 3 1 2 3 1 2 |
| 176 |
3 1 2 3 1 2 3 1 2 3 1 2 3 1 2 3 1 2 3 "/> |
| 177 |
|
| 178 |
|
| 179 |
|
| 180 |
|
| 181 |
|
| 182 |
|
| 183 |
|
| 184 |
|
| 185 |
|
| 186 |
|
| 187 |
|
| 188 |
|
| 189 |
</design> |
| 190 |
|
| 191 |
|
| 192 |
|
| 193 |
|
| 194 |
|
| 195 |
<diagonalMatrix id="gammaMatrix"> |
| 196 |
<parameter id="gamma.diag" value="1.0 1.0 1.0" lower="0.0 0.0 0.0"/> |
| 197 |
</diagonalMatrix> |
| 198 |
<independentVariables> |
| 199 |
<parameter idref="fixedEffects"/> |
| 200 |
<designMatrix idref="fixedEffectsMatrix"/> |
| 201 |
</independentVariables> |
| 202 |
</multivariateOUModel> |
| 203 |
|
| 204 |
|
| 205 |
|
| 206 |
|
| 207 |
|
| 208 |
|
| 209 |
|
| 210 |
|
| 211 |
|
| 212 |
|
| 213 |
|
| 214 |
|
| 215 |
|
| 216 |
|
| 217 |
|
| 218 |
<gammaPrior id="prior.Gamma" shape="0.1" scale="10" offset="0.0"> |
| 219 |
<parameter idref="gamma.diag"/> |
| 220 |
</gammaPrior> |
| 221 |
|
| 222 |
<dummyModel id="dummy"> |
| 223 |
<matrixParameter idref="gammaMatrix"/> |
| 224 |
<parameter idref="fixedEffects"/> |
| 225 |
</dummyModel> |
| 226 |
|
| 227 |
|
| 228 |
<report> |
| 229 |
<multivariateOUModel idref="mvouModel"/> |
| 230 |
</report> |
| 231 |
|
| 232 |
<operators id="operators"> |
| 233 |
|
| 234 |
|
| 235 |
|
| 236 |
|
| 237 |
|
| 238 |
|
| 239 |
<randomWalkOperator windowSize="0.1" weight="1" autoOptimize="true"> |
| 240 |
<parameter idref="Qmat"/> |
| 241 |
</randomWalkOperator> |
| 242 |
|
| 243 |
|
| 244 |
|
| 245 |
|
| 246 |
|
| 247 |
|
| 248 |
|
| 249 |
|
| 250 |
<randomWalkOperator windowSize="0.1" weight="1" autoOptimize="true"> |
| 251 |
<parameter idref="gamma.diag"/> |
| 252 |
</randomWalkOperator> |
| 253 |
|
| 254 |
<randomWalkOperator windowSize="0.5" weight="1" autoOptimize="true"> |
| 255 |
<parameter idref="fixedEffects"/> |
| 256 |
</randomWalkOperator> |
| 257 |
|
| 258 |
</operators> |
| 259 |
|
| 260 |
<mcmc id="mcmc" chainLength="100000" autoOptimize="true"> |
| 261 |
<posterior> |
| 262 |
|
| 263 |
|
| 264 |
|
| 265 |
<compoundLikelihood id="likelihood"> |
| 266 |
<dummyModel idref="dummy"/> |
| 267 |
<multivariateOUModel idref="mvouModel"/> |
| 268 |
</compoundLikelihood> |
| 269 |
<prior id="prior"> |
| 270 |
|
| 271 |
<multivariateWishartPrior idref="prior.Gamma"/> |
| 272 |
<multivariateNormalPrior idref="prior.FixedEffects"/> |
| 273 |
</prior> |
| 274 |
</posterior> |
| 275 |
<operators idref="operators"/> |
| 276 |
<log logEvery="1000"> |
| 277 |
<column label="Likelihood" dp="4" width="12"> |
| 278 |
<compoundLikelihood idref="likelihood"/> |
| 279 |
<compoundLikelihood idref="prior"/> |
| 280 |
<parameter idref="fixedEffects"/> |
| 281 |
<matrixParameter idref="Qmat"/> |
| 282 |
<matrixParameter idref="gammaMatrix"/> |
| 283 |
</column> |
| 284 |
</log> |
| 285 |
<log logEvery="1000" fileName="testMVOU.log"> |
| 286 |
<compoundLikelihood idref="likelihood"/> |
| 287 |
<compoundLikelihood idref="prior"/> |
| 288 |
<parameter idref="fixedEffects"/> |
| 289 |
<matrixParameter idref="Qmat"/> |
| 290 |
<matrixParameter idref="gammaMatrix"/> |
| 291 |
</log> |
| 292 |
</mcmc> |
| 293 |
|
| 294 |
<report> |
| 295 |
<property name="timer"> |
| 296 |
<object idref="mcmc"/> |
| 297 |
</property> |
| 298 |
</report> |
| 299 |
|
| 300 |
<traceAnalysis fileName="testMVOU.log"/> |
| 301 |
|
| 302 |
</beast> |