| 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 |
<parameter id="mds.residual.precision" value="1.2"/> |
| 44 |
<reciprocalStatistic id="mds.residual.variance"> |
| 45 |
<parameter idref="mds.residual.precision"/> |
| 46 |
</reciprocalStatistic> |
| 47 |
|
| 48 |
<multiDimensionalScalingLikelihood id="mdsLikelihood" fileName="US_cities.txt" mdsDimension="2"> |
| 49 |
<locations> |
| 50 |
<matrixParameter id="locations"/> |
| 51 |
</locations> |
| 52 |
|
| 53 |
<mdsPrecision> |
| 54 |
<parameter idref="mds.residual.precision"/> |
| 55 |
</mdsPrecision> |
| 56 |
</multiDimensionalScalingLikelihood> |
| 57 |
|
| 58 |
|
| 59 |
|
| 60 |
|
| 61 |
|
| 62 |
|
| 63 |
|
| 64 |
|
| 65 |
|
| 66 |
|
| 67 |
|
| 68 |
<maskedParameter id="locations.1" from="1" every="2"> |
| 69 |
<matrixParameter idref="locations"/> |
| 70 |
</maskedParameter> |
| 71 |
<maskedParameter id="locations.2" from="2" every="2"> |
| 72 |
<matrixParameter idref="locations"/> |
| 73 |
</maskedParameter> |
| 74 |
|
| 75 |
<normalDistributionModel id="normalDistribution.1"> |
| 76 |
<mean> |
| 77 |
<parameter id="mds.fitted.mean.1" value="0"/> |
| 78 |
</mean> |
| 79 |
<precision> |
| 80 |
<parameter id="mds.fitted.precision.1" value="1"/> |
| 81 |
</precision> |
| 82 |
</normalDistributionModel> |
| 83 |
<normalDistributionModel id="normalDistribution.2"> |
| 84 |
<mean> |
| 85 |
<parameter id="mds.fitted.mean.2" value="0"/> |
| 86 |
</mean> |
| 87 |
<precision> |
| 88 |
<parameter id="mds.fitted.precision.2" value="1"/> |
| 89 |
</precision> |
| 90 |
</normalDistributionModel> |
| 91 |
|
| 92 |
<reciprocalStatistic id="mds.fitted.variance.1"> |
| 93 |
<parameter idref="mds.fitted.precision.1"/> |
| 94 |
</reciprocalStatistic> |
| 95 |
<reciprocalStatistic id="mds.fitted.variance.2"> |
| 96 |
<parameter idref="mds.fitted.precision.2"/> |
| 97 |
</reciprocalStatistic> |
| 98 |
|
| 99 |
<distributionLikelihood id="hierarchicalPrior.1"> |
| 100 |
<distribution> |
| 101 |
<normalDistributionModel idref="normalDistribution.1"/> |
| 102 |
</distribution> |
| 103 |
<data> |
| 104 |
<maskedParameter idref="locations.1"/> |
| 105 |
</data> |
| 106 |
</distributionLikelihood> |
| 107 |
<distributionLikelihood id="hierarchicalPrior.2"> |
| 108 |
<distribution> |
| 109 |
<normalDistributionModel idref="normalDistribution.2"/> |
| 110 |
</distribution> |
| 111 |
<data> |
| 112 |
<maskedParameter idref="locations.2"/> |
| 113 |
</data> |
| 114 |
</distributionLikelihood> |
| 115 |
|
| 116 |
|
| 117 |
|
| 118 |
|
| 119 |
|
| 120 |
|
| 121 |
|
| 122 |
|
| 123 |
<gammaPrior id="prior.residual" shape="1.0" scale="6.4E-4" offset="0.0"> |
| 124 |
<parameter idref="mds.residual.precision"/> |
| 125 |
</gammaPrior> |
| 126 |
|
| 127 |
|
| 128 |
|
| 129 |
|
| 130 |
|
| 131 |
|
| 132 |
|
| 133 |
<gammaPrior id="prior.precision.1" shape="1.0" scale="6.5E-7" offset="0.0"> |
| 134 |
<parameter idref="mds.fitted.precision.1"/> |
| 135 |
</gammaPrior> |
| 136 |
<gammaPrior id="prior.precision.2" shape="1.0" scale="4.2E-6" offset="0.0"> |
| 137 |
<parameter idref="mds.fitted.precision.2"/> |
| 138 |
</gammaPrior> |
| 139 |
|
| 140 |
<operators id="operators" optimizationSchedule="log"> |
| 141 |
|
| 142 |
<randomWalkOperator windowSize="1.0" weight="20"> |
| 143 |
<parameter idref="locations"/> |
| 144 |
</randomWalkOperator> |
| 145 |
|
| 146 |
<scaleOperator scaleFactor="0.75" weight="1"> |
| 147 |
<parameter idref="mds.residual.precision"/> |
| 148 |
</scaleOperator> |
| 149 |
|
| 150 |
<normalGammaPrecisionGibbsOperator weight="1"> |
| 151 |
<likelihood> |
| 152 |
<distributionLikelihood idref="hierarchicalPrior.1"/> |
| 153 |
</likelihood> |
| 154 |
<prior> |
| 155 |
<gammaPrior idref="prior.precision.1"/> |
| 156 |
</prior> |
| 157 |
</normalGammaPrecisionGibbsOperator> |
| 158 |
|
| 159 |
<normalGammaPrecisionGibbsOperator weight="1"> |
| 160 |
<likelihood> |
| 161 |
<distributionLikelihood idref="hierarchicalPrior.2"/> |
| 162 |
</likelihood> |
| 163 |
<prior> |
| 164 |
<gammaPrior idref="prior.precision.2"/> |
| 165 |
</prior> |
| 166 |
</normalGammaPrecisionGibbsOperator> |
| 167 |
|
| 168 |
</operators> |
| 169 |
|
| 170 |
<mcmc id="mcmc" chainLength="10000000" autoOptimize="true" fullEvaluation="10000"> |
| 171 |
<posterior id="posterior"> |
| 172 |
<prior id="prior"> |
| 173 |
<gammaPrior idref="prior.residual"/> |
| 174 |
<gammaPrior idref="prior.precision.1"/> |
| 175 |
<gammaPrior idref="prior.precision.2"/> |
| 176 |
|
| 177 |
<distributionLikelihood idref="hierarchicalPrior.1"/> |
| 178 |
<distributionLikelihood idref="hierarchicalPrior.2"/> |
| 179 |
</prior> |
| 180 |
|
| 181 |
<likelihood id="likelihood"> |
| 182 |
|
| 183 |
|
| 184 |
|
| 185 |
|
| 186 |
|
| 187 |
|
| 188 |
|
| 189 |
|
| 190 |
<multidimensionalScalingLikelihood idref="mdsLikelihood"/> |
| 191 |
|
| 192 |
</likelihood> |
| 193 |
|
| 194 |
</posterior> |
| 195 |
|
| 196 |
<operators idref="operators"/> |
| 197 |
|
| 198 |
<log id="screenLog" logEvery="100000"> |
| 199 |
<column label="Posterior" dp="4" width="12"> |
| 200 |
<posterior idref="posterior"/> |
| 201 |
</column> |
| 202 |
<column label="Prior" dp="4" width="12"> |
| 203 |
<prior idref="prior"/> |
| 204 |
</column> |
| 205 |
<column label="Likelihood" dp="4" width="12"> |
| 206 |
<likelihood idref="likelihood"/> |
| 207 |
</column> |
| 208 |
|
| 209 |
<column label="MDSPrecision" sf="6" width="12"> |
| 210 |
<parameter idref="mds.residual.precision"/> |
| 211 |
<parameter idref="mds.fitted.precision.1"/> |
| 212 |
<parameter idref="mds.fitted.precision.2"/> |
| 213 |
</column> |
| 214 |
</log> |
| 215 |
|
| 216 |
<log id="fileLog1" logEvery="10000" fileName="US_cities.log"> |
| 217 |
<posterior idref="posterior"/> |
| 218 |
<prior idref="prior"/> |
| 219 |
<likelihood idref="likelihood"/> |
| 220 |
|
| 221 |
<parameter idref="mds.residual.precision"/> |
| 222 |
</log> |
| 223 |
|
| 224 |
<log id="tauLog" logEvery="100" fileName="precision.log"> |
| 225 |
<parameter idref="mds.residual.precision"/> |
| 226 |
<parameter idref="mds.fitted.precision.1"/> |
| 227 |
<parameter idref="mds.fitted.precision.2"/> |
| 228 |
<reciprocalStatistic idref="mds.residual.variance"/> |
| 229 |
<reciprocalStatistic idref="mds.fitted.variance.1"/> |
| 230 |
<reciprocalStatistic idref="mds.fitted.variance.2"/> |
| 231 |
</log> |
| 232 |
|
| 233 |
|
| 234 |
|
| 235 |
|
| 236 |
|
| 237 |
|
| 238 |
|
| 239 |
|
| 240 |
|
| 241 |
<log id="fileLog2" logEvery="10000" fileName="US_cities.locations.log"> |
| 242 |
<matrixParameter idref="locations"/> |
| 243 |
</log> |
| 244 |
|
| 245 |
</mcmc> |
| 246 |
|
| 247 |
|
| 248 |
|
| 249 |
|
| 250 |
|
| 251 |
<report> |
| 252 |
<property name="timer"> |
| 253 |
<object idref="mcmc"/> |
| 254 |
</property> |
| 255 |
</report> |
| 256 |
</beast> |