Skip to contents

Performs Bayesian Estimation of the Additive Main Effects and Multiplicative Interaction Model

Usage

# Default S3 method
bayes_ammi(.data, .y, .gen, .env, .rep, .nIter)

Arguments

.data

data.frame

.y

Response Variable

.gen

Genotypes Factor

.env

Environment Factor

.rep

Replication Factor

.nIter

Number of Iterations

Value

Genotype by Environment Interaction Model

References

Crossa, J., Perez-Elizalde, S., Jarquin, D., Cotes, J.M., Viele, K., Liu, G., and Cornelius, P.L. (2011) Bayesian Estimation of the Additive Main Effects and Multiplicative Interaction Model Crop Science, 51, 1458–1469. (doi: 10.2135/cropsci2010.06.0343)

Author

  1. Muhammad Yaseen (myaseen208@gmail.com)

  2. Jose Crossa (j.crossa@cgiar.org)

  3. Sergio Perez-Elizalde (sergiop@colpos.mx)

  4. Diego Jarquin (diego.jarquin@gmail.com)

  5. Jose Miguel Cotes

  6. Kert Viele

  7. Genzhou Liu

  8. Paul L. Cornelius

Examples


data(Maiz)

fm1 <-
  bayes_ammi(
    .data = Maiz,
    .y = Yield,
    .gen = Gen,
    .env = Env,
    .rep = Rep,
    .nIter = 20
  )
names(fm1)
#> [1] "mu1"      "tau1"     "tao1"     "delta1"   "lambdas1" "alphas1"  "gammas1" 
#> [8] "alphas0"  "gammas0" 
fm1
#> $mu1
#>           mu
#>        <num>
#>  1: 4875.081
#>  2: 4909.289
#>  3: 4882.046
#>  4: 4855.801
#>  5: 4863.788
#>  6: 4873.865
#>  7: 4902.529
#>  8: 4859.345
#>  9: 4854.739
#> 10: 4885.695
#> 11: 4844.327
#> 12: 4825.399
#> 13: 4901.431
#> 14: 4851.549
#> 15: 4841.147
#> 16: 4882.348
#> 17: 4885.549
#> 18: 4853.636
#> 19: 4826.229
#> 20: 4851.202
#>           mu
#> 
#> $tau1
#>              tau
#>            <num>
#>  1: 1.658802e-06
#>  2: 1.658802e-06
#>  3: 1.658802e-06
#>  4: 1.658802e-06
#>  5: 1.658802e-06
#>  6: 1.658802e-06
#>  7: 1.658802e-06
#>  8: 1.658802e-06
#>  9: 1.658802e-06
#> 10: 1.658802e-06
#> 11: 1.658802e-06
#> 12: 1.658802e-06
#> 13: 1.658802e-06
#> 14: 1.658802e-06
#> 15: 1.658802e-06
#> 16: 1.658802e-06
#> 17: 1.658802e-06
#> 18: 1.658802e-06
#> 19: 1.658802e-06
#> 20: 1.658802e-06
#>              tau
#> 
#> $tao1
#>              tao1          tao2          tao3         tao4          tao5
#>             <num>         <num>         <num>        <num>         <num>
#>  1: -9.112644e-01 -2.761021e-01 -2.681265e-01 6.381562e-01 -1.809898e+00
#>  2: -7.231602e+01 -2.349028e+01 -1.997849e+01 5.190823e+01 -1.438275e+02
#>  3: -5.782639e+03 -1.877994e+03 -1.595582e+03 4.151811e+03 -1.150362e+04
#>  4: -4.625482e+05 -1.502192e+05 -1.276283e+05 3.321024e+05 -9.201674e+05
#>  5: -3.699894e+07 -1.201595e+07 -1.020891e+07 2.656466e+07 -7.360363e+07
#>  6: -2.959523e+09 -9.611481e+08 -8.166042e+08 2.124891e+09 -5.887509e+09
#>  7: -2.367304e+11 -7.688164e+10 -6.531967e+10 1.699687e+11 -4.709382e+11
#>  8: -1.893592e+13 -6.149715e+12 -5.224880e+12 1.359569e+13 -3.767006e+13
#>  9: -1.514673e+15 -4.919119e+14 -4.179349e+14 1.087511e+15 -3.013205e+15
#> 10: -1.211577e+17 -3.934773e+16 -3.343036e+16 8.698936e+16 -2.410244e+17
#> 11: -9.691332e+18 -3.147401e+18 -2.674074e+18 6.958225e+18 -1.927939e+19
#> 12: -7.752037e+20 -2.517587e+20 -2.138975e+20 5.565841e+20 -1.542147e+21
#> 13: -6.200807e+22 -2.013802e+22 -1.710953e+22 4.452082e+22 -1.233554e+23
#> 14: -4.959987e+24 -1.610828e+24 -1.368581e+24 3.561193e+24 -9.867121e+24
#> 15: -3.967463e+26 -1.288491e+26 -1.094719e+26 2.848577e+26 -7.892649e+26
#> 16: -3.173549e+28 -1.030656e+28 -8.756593e+27 2.278559e+28 -6.313282e+28
#> 17: -2.538503e+30 -8.244157e+29 -7.004345e+29 1.822605e+30 -5.049955e+30
#> 18: -2.030533e+32 -6.594450e+31 -5.602733e+31 1.457891e+32 -4.039428e+32
#> 19: -1.624211e+34 -5.274860e+33 -4.481591e+33 1.166158e+34 -3.231114e+34
#> 20: -1.299196e+36 -4.219328e+35 -3.584797e+35 9.328025e+35 -2.584548e+36
#>              tao1          tao2          tao3         tao4          tao5
#>             tao6          tao7          tao8         tao9
#>            <num>         <num>         <num>        <num>
#>  1: 6.139451e-01 -4.454396e-01 -1.012457e-01 7.175236e-01
#>  2: 4.805688e+01 -3.800274e+01 -6.962013e+00 5.742813e+01
#>  3: 3.844694e+03 -3.038786e+03 -5.564028e+02 4.592838e+03
#>  4: 3.075369e+05 -2.430700e+05 -4.450636e+04 3.673778e+05
#>  5: 2.459969e+07 -1.944302e+07 -3.560037e+06 2.938632e+07
#>  6: 1.967714e+09 -1.555235e+09 -2.847651e+08 2.350594e+09
#>  7: 1.573962e+11 -1.244023e+11 -2.277819e+10 1.880225e+11
#>  8: 1.259003e+13 -9.950864e+12 -1.822013e+12 1.503981e+13
#>  9: 1.007069e+15 -7.959635e+14 -1.457417e+14 1.203025e+15
#> 10: 8.055479e+16 -6.366863e+16 -1.165779e+16 9.622923e+16
#> 11: 6.443528e+18 -5.092815e+18 -9.324995e+17 7.697317e+18
#> 12: 5.154139e+20 -4.073711e+20 -7.459006e+19 6.157036e+20
#> 13: 4.122764e+22 -3.258537e+22 -5.966413e+21 4.924975e+22
#> 14: 3.297773e+24 -2.606483e+24 -4.772497e+23 3.939458e+24
#> 15: 2.637869e+26 -2.084910e+26 -3.817491e+25 3.151148e+26
#> 16: 2.110015e+28 -1.667707e+28 -3.053588e+27 2.520584e+28
#> 17: 1.687788e+30 -1.333988e+30 -2.442546e+29 2.016199e+30
#> 18: 1.350051e+32 -1.067049e+32 -1.953778e+31 1.612746e+32
#> 19: 1.079898e+34 -8.535260e+33 -1.562815e+33 1.290025e+34
#> 20: 8.638035e+35 -6.827302e+35 -1.250086e+35 1.031883e+36
#>             tao6          tao7          tao8         tao9
#> 
#> $delta1
#>            delta1       delta2       delta3        delta4       delta5
#>             <num>        <num>        <num>         <num>        <num>
#>  1: -1.542528e-01 6.201817e-01 6.284380e-01 -4.735892e-01 1.813156e+00
#>  2: -3.951221e+00 2.322141e+01 2.079810e+01 -1.762701e+01 6.686773e+01
#>  3: -1.427635e+02 8.360698e+02 7.473701e+02 -6.341041e+02 2.405946e+03
#>  4: -5.140671e+03 3.009613e+04 2.690243e+04 -2.282752e+04 8.660848e+04
#>  5: -1.850531e+05 1.083395e+06 9.684279e+05 -8.217413e+05 3.117720e+06
#>  6: -6.661515e+06 3.899989e+07 3.486132e+07 -2.958092e+07 1.122312e+08
#>  7: -2.398002e+08 1.403912e+09 1.254933e+09 -1.064850e+09 4.040082e+09
#>  8: -8.632293e+09 5.053782e+10 4.517488e+10 -3.833229e+10 1.454343e+11
#>  9: -3.107440e+11 1.819253e+12 1.626198e+12 -1.379880e+12 5.235321e+12
#> 10: -1.118612e+13 6.548920e+13 5.853965e+13 -4.967272e+13 1.884603e+14
#> 11: -4.026761e+14 2.357470e+15 2.107302e+15 -1.788111e+15 6.784166e+15
#> 12: -1.449547e+16 8.486386e+16 7.585833e+16 -6.436816e+16 2.442154e+17
#> 13: -5.218059e+17 3.054917e+18 2.730737e+18 -2.317115e+18 8.791229e+18
#> 14: -1.878389e+19 1.099704e+20 9.830065e+19 -8.341117e+19 3.164653e+20
#> 15: -6.761797e+20 3.958699e+21 3.538612e+21 -3.002623e+21 1.139207e+22
#> 16: -2.434102e+22 1.425047e+23 1.273824e+23 -1.080880e+23 4.100901e+23
#> 17: -8.762242e+23 5.129861e+24 4.585494e+24 -3.890934e+24 1.476236e+25
#> 18: -3.154219e+25 1.846640e+26 1.650679e+26 -1.400653e+26 5.314133e+26
#> 19: -1.135451e+27 6.647506e+27 5.942090e+27 -5.042049e+27 1.912974e+28
#> 20: -4.087379e+28 2.392959e+29 2.139025e+29 -1.815029e+29 6.886294e+29
#>            delta1       delta2       delta3        delta4       delta5
#>            delta6        delta7        delta8       delta9      delta10
#>             <num>         <num>         <num>        <num>        <num>
#>  1: -1.589651e+00 -1.545079e+00 -6.362702e-01 1.463843e+00 7.876801e-01
#>  2: -5.666267e+01 -5.695400e+01 -2.274671e+01 5.035633e+01 3.050791e+01
#>  3: -2.039502e+03 -2.050908e+03 -8.194244e+02 1.814885e+03 1.097722e+03
#>  4: -7.341756e+04 -7.382761e+04 -2.949852e+04 6.533093e+04 3.951831e+04
#>  5: -2.642872e+06 -2.657635e+06 -1.061885e+06 2.351774e+06 1.422574e+06
#>  6: -9.513771e+07 -9.566913e+07 -3.822558e+07 8.465880e+07 5.120961e+07
#>  7: -3.424753e+09 -3.443883e+09 -1.376039e+09 3.047535e+09 1.843436e+09
#>  8: -1.232837e+11 -1.239724e+11 -4.953443e+10 1.097047e+11 6.635973e+10
#>  9: -4.437950e+12 -4.462740e+12 -1.783133e+12 3.949133e+12 2.388808e+12
#> 10: -1.597566e+14 -1.606490e+14 -6.418896e+13 1.421603e+14 8.599195e+13
#> 11: -5.750896e+15 -5.783020e+15 -2.310665e+15 5.117466e+15 3.095525e+15
#> 12: -2.070199e+17 -2.081763e+17 -8.317896e+16 1.842178e+17 1.114323e+17
#> 13: -7.452271e+18 -7.493899e+18 -2.994264e+18 6.631444e+18 4.011322e+18
#> 14: -2.682657e+20 -2.697642e+20 -1.077871e+20 2.387177e+20 1.443990e+20
#> 15: -9.656990e+21 -9.710933e+21 -3.880102e+21 8.593324e+21 5.198052e+21
#> 16: -3.476309e+23 -3.495727e+23 -1.396753e+23 3.093412e+23 1.871187e+23
#> 17: -1.251396e+25 -1.258387e+25 -5.028012e+24 1.113562e+25 6.735871e+24
#> 18: -4.504758e+26 -4.529921e+26 -1.809976e+26 4.008583e+26 2.424769e+26
#> 19: -1.621616e+28 -1.630674e+28 -6.515525e+27 1.443004e+28 8.728646e+27
#> 20: -5.837469e+29 -5.870077e+29 -2.345449e+29 5.194504e+29 3.142125e+29
#>            delta6        delta7        delta8       delta9      delta10
#>          delta11      delta12       delta13       delta14      delta15
#>            <num>        <num>         <num>         <num>        <num>
#>  1: 3.067819e-01 1.128771e+00 -3.235194e-01 -8.782993e-01 8.249580e-01
#>  2: 1.187534e+01 4.133255e+01 -1.135999e+01 -3.227981e+01 3.005644e+01
#>  3: 4.281822e+02 1.486911e+03 -4.093190e+02 -1.160109e+03 1.081120e+03
#>  4: 1.541246e+04 5.352611e+04 -1.473371e+04 -4.175977e+04 3.891681e+04
#>  5: 5.548169e+05 1.926825e+06 -5.303820e+05 -1.503260e+06 1.400920e+06
#>  6: 1.997221e+07 6.936157e+07 -1.909261e+07 -5.411413e+07 5.043012e+07
#>  7: 7.189568e+08 2.496867e+09 -6.872929e+08 -1.947992e+09 1.815376e+09
#>  8: 2.588090e+10 8.988186e+10 -2.474107e+10 -7.012354e+10 6.534963e+10
#>  9: 9.316567e+11 3.235554e+12 -8.906253e+11 -2.524297e+12 2.352446e+12
#> 10: 3.353764e+13 1.164730e+14 -3.206060e+13 -9.086925e+13 8.468301e+13
#> 11: 1.207283e+15 4.192777e+15 -1.154113e+15 -3.271098e+15 3.048406e+15
#> 12: 4.345959e+16 1.509309e+17 -4.154557e+16 -1.177525e+17 1.097361e+17
#> 13: 1.564452e+18 5.433190e+18 -1.495551e+18 -4.238836e+18 3.950263e+18
#> 14: 5.631690e+19 1.955832e+20 -5.383663e+19 -1.525890e+20 1.422010e+20
#> 15: 2.027287e+21 7.040573e+21 -1.938003e+21 -5.492876e+21 5.118929e+21
#> 16: 7.297799e+22 2.534455e+23 -6.976394e+22 -1.977317e+23 1.842704e+23
#> 17: 2.627051e+24 9.123493e+24 -2.511352e+24 -7.117917e+24 6.633340e+24
#> 18: 9.456818e+25 3.284261e+26 -9.040327e+25 -2.562297e+26 2.387860e+26
#> 19: 3.404251e+27 1.182263e+28 -3.254323e+27 -9.223719e+27 8.595782e+27
#> 20: 1.225457e+29 4.255894e+29 -1.171486e+29 -3.320341e+29 3.094297e+29
#>          delta11      delta12       delta13       delta14      delta15
#>           delta16      delta17      delta18      delta19       delta20
#>             <num>        <num>        <num>        <num>         <num>
#>  1: -7.424738e-01 5.282747e-01 3.786861e-01 1.825370e+00 -1.081896e-01
#>  2: -2.666581e+01 2.097250e+01 1.309956e+01 6.441066e+01 -3.303347e+00
#>  3: -9.608677e+02 7.557980e+02 4.721005e+02 2.318346e+03 -1.182333e+02
#>  4: -3.459129e+04 2.720827e+04 1.699276e+04 8.345431e+04 -4.256558e+03
#>  5: -1.245211e+06 9.794389e+05 6.117020e+05 3.004175e+06 -1.532272e+05
#>  6: -4.482493e+07 3.525769e+07 2.201996e+07 1.081438e+08 -5.515850e+06
#>  7: -1.613601e+09 1.269201e+09 7.926711e+08 3.892946e+09 -1.985587e+08
#>  8: -5.808618e+10 4.568851e+10 2.853446e+10 1.401377e+11 -7.147688e+09
#>  9: -2.090977e+12 1.644688e+12 1.027179e+12 5.044655e+12 -2.573014e+11
#> 10: -7.527069e+13 5.920524e+13 3.697624e+13 1.815968e+14 -9.262297e+12
#> 11: -2.709583e+15 2.131262e+15 1.331065e+15 6.537093e+15 -3.334228e+14
#> 12: -9.753917e+16 7.672083e+16 4.791548e+16 2.353213e+17 -1.200250e+16
#> 13: -3.511200e+18 2.761785e+18 1.724854e+18 8.471060e+18 -4.320643e+17
#> 14: -1.263957e+20 9.941833e+19 6.209105e+19 3.049400e+20 -1.555339e+19
#> 15: -4.549972e+21 3.578846e+21 2.235144e+21 1.097718e+22 -5.598885e+20
#> 16: -1.637892e+23 1.288308e+23 8.046039e+22 3.951550e+23 -2.015478e+22
#> 17: -5.896060e+24 4.637630e+24 2.896401e+24 1.422473e+25 -7.255288e+23
#> 18: -2.122455e+26 1.669447e+26 1.042642e+26 5.120597e+26 -2.611748e+25
#> 19: -7.640381e+27 6.009651e+27 3.753288e+27 1.843305e+28 -9.401731e+26
#> 20: -2.750373e+29 2.163345e+29 1.351103e+29 6.635501e+29 -3.384421e+28
#>           delta16      delta17      delta18      delta19       delta20
#> 
#> $lambdas1
#>             V1        V2         V3       V4        V5        V6         V7
#>          <num>     <num>      <num>    <num>     <num>     <num>      <num>
#>  1: 3672.99840 5996.4677  5748.7750 5049.626 2737.5412 3135.0036  1767.2633
#>  2: 4580.07632  630.3680  3572.8029 1743.946 1167.1258 8532.2491  6510.4493
#>  3: 3164.34666 8356.5604  2785.0817 4923.323  610.7504  349.7479  7536.8348
#>  4: 4478.77354 6154.8978  -518.2899 7144.253 7292.4570 4871.4529  -748.5754
#>  5: 3047.34752 8008.9139  6991.5202 4603.901 9053.6018 5565.6838  3804.8865
#>  6: 7511.17457  106.5843  5124.1315 4846.057 9676.6292 7052.6386  4985.5279
#>  7: 3405.12000 2390.8875  7570.6747 9113.204 5204.3101 4173.9163  9709.7245
#>  8:   83.40527 4172.1048  3790.7052 7082.742 7237.9353 5866.0040  4660.4976
#>  9: 6350.77009 6247.9214  1083.7674 9486.074 6611.5998 6504.8032 10928.6379
#> 10: 7858.56780 8187.8866  8439.5434 4127.138 9923.7589  588.5627  8747.3968
#> 11: 3956.07740 7024.3269 12195.1536 7886.357 4292.2095 7558.1973  8875.6529
#> 12: 8233.74784 4061.2063  9014.0820 9909.982 5365.2522 5753.5934  9844.7455
#> 13: 9648.77910 8159.5147  8211.1829 8377.962 5003.3041 9896.9810  7236.6016
#> 14: 7531.97199 7964.2259  9294.3202 6431.730 6563.8337 3252.3370  6999.2094
#> 15: 5952.05348 8191.8154  5616.2940 5852.688 7108.4164 6621.0751  5181.6184
#> 16: 4227.41917 7136.7126  6071.9802 5761.049 6594.3994 4723.1557  6924.4100
#> 17: 5823.47081 4672.6525  7630.1289 6954.611 7065.9910 5586.1559  4913.4914
#> 18: 7793.15109 6754.9076  6434.3528 6280.496 5474.6836 7542.7780  8721.9910
#> 19: 7287.23003 7978.9080  5319.1931 8819.400 8248.6355 6716.9588  6391.9232
#> 20: 8112.29497 6481.9631  8512.2434 6541.665 5877.3783 7232.9921  9452.7203
#>             V1        V2         V3       V4        V5        V6         V7
#>             V8
#>          <num>
#>  1:  -477.3623
#>  2:  5507.8274
#>  3:  7698.0443
#>  4:  6181.2021
#>  5:  2734.5366
#>  6:  5504.8646
#>  7:  5150.4520
#>  8:  9050.8193
#>  9:  4400.7418
#> 10: 13196.1303
#> 11:  4109.8109
#> 12: 10408.1885
#> 13:  2933.6824
#> 14:  9408.9941
#> 15:  9905.5244
#> 16:  6197.6601
#> 17:  7323.7700
#> 18:  5003.4624
#> 19:  7947.7388
#> 20:  6275.0142
#>             V8
#> 
#> $alphas1
#>      .nIter   Gen    alphas1      alphas2      alphas3     alphas4     alphas5
#>       <int> <int>      <num>        <num>        <num>       <num>       <num>
#>   1:      1     1 -0.3812275  0.226376853  0.640917402  0.06276348 -0.27443433
#>   2:      1     2 -0.2475437  0.318181602  0.006538921  0.28188493 -0.01561052
#>   3:      1     3 -0.1646604  0.148474658  0.057621352 -0.20971703  0.57150726
#>   4:      1     4  0.5150500 -0.003274222  0.055897289  0.19678126 -0.53669368
#>   5:      1     5  0.2830484 -0.342584150  0.367812867 -0.48923056  0.20120360
#>  ---                                                                          
#> 176:     20     5  0.2830484 -0.342584150  0.367812867 -0.48923056  0.20120360
#> 177:     20     6  0.2711150 -0.219555439 -0.091312330 -0.08018815 -0.03226380
#> 178:     20     7 -0.1187550  0.378875355 -0.568803868 -0.51368905 -0.26377705
#> 179:     20     8 -0.4791048 -0.693744264 -0.287949071  0.23087508 -0.08707764
#> 180:     20     9  0.3220780  0.187249608 -0.180722562  0.52052004  0.43714616
#>          alphas6     alphas7     alphas8
#>            <num>       <num>       <num>
#>   1:  0.37189646 -0.02847968  0.25131927
#>   2: -0.59051506  0.46762033 -0.28151218
#>   3:  0.10396503 -0.45151147 -0.50113650
#>   4: -0.15093898 -0.44908389 -0.26316390
#>   5: -0.40537436  0.11832901  0.31298999
#>  ---                                    
#> 176: -0.40537436  0.11832901  0.31298999
#> 177:  0.54258480  0.57650833 -0.35300400
#> 178:  0.03780326 -0.04118176  0.26668701
#> 179: -0.04170396 -0.16110446  0.08106783
#> 180:  0.13228281 -0.03109641  0.48675248
#> 
#> $gammas1
#>      .nIter   Env       gammas1      gammas2     gammas3      gammas4
#>       <int> <int>         <num>        <num>       <num>        <num>
#>   1:      1     1 -0.2247956069 -0.268762762 -0.18039432  0.222348371
#>   2:      1     2  0.0175838398  0.177687532 -0.29891172 -0.041784559
#>   3:      1     3 -0.2576076055 -0.175443927  0.17871779 -0.529519189
#>   4:      1     4  0.1479472725 -0.088454266  0.06916388  0.217056712
#>   5:      1     5  0.0858940079 -0.087735308 -0.01552031  0.332760370
#>  ---                                                                 
#> 396:     20    16  0.0789946673  0.002229003  0.11256880 -0.036351911
#> 397:     20    17  0.0000971901 -0.429651688  0.02636084  0.176686594
#> 398:     20    18  0.2171860426  0.341218990 -0.43664712 -0.014493154
#> 399:     20    19 -0.0881298634 -0.075990205 -0.42389392 -0.250725603
#> 400:     20    20 -0.0364137885 -0.256444309  0.16211920 -0.001880067
#>          gammas5     gammas6     gammas7     gammas8
#>            <num>       <num>       <num>       <num>
#>   1: -0.30092049  0.22504209 -0.13031920 -0.34699606
#>   2: -0.09111097  0.23675510  0.12377796  0.07585473
#>   3: -0.18043272 -0.24701208  0.23691797  0.28467277
#>   4:  0.16726564 -0.08520769  0.08679727 -0.25341948
#>   5: -0.13388850 -0.35236840  0.64877684  0.10343984
#>  ---                                                
#> 396: -0.09773665 -0.28799008 -0.33859678 -0.37613719
#> 397:  0.13223547  0.20513432  0.07242739 -0.13383648
#> 398: -0.12508018 -0.03944587  0.12862691 -0.18145153
#> 399:  0.37341100 -0.09573202 -0.08050531  0.15741788
#> 400:  0.24492422 -0.18192604 -0.26879247  0.11888809
#> 
#> $alphas0
#>       alphas1      alphas2      alphas3     alphas4     alphas5     alphas6
#>         <num>        <num>        <num>       <num>       <num>       <num>
#> 1: -0.3812275  0.226376853  0.640917402  0.06276348 -0.27443433  0.37189646
#> 2: -0.2475437  0.318181602  0.006538921  0.28188493 -0.01561052 -0.59051506
#> 3: -0.1646604  0.148474658  0.057621352 -0.20971703  0.57150726  0.10396503
#> 4:  0.5150500 -0.003274222  0.055897289  0.19678126 -0.53669368 -0.15093898
#> 5:  0.2830484 -0.342584150  0.367812867 -0.48923056  0.20120360 -0.40537436
#> 6:  0.2711150 -0.219555439 -0.091312330 -0.08018815 -0.03226380  0.54258480
#> 7: -0.1187550  0.378875355 -0.568803868 -0.51368905 -0.26377705  0.03780326
#> 8: -0.4791048 -0.693744264 -0.287949071  0.23087508 -0.08707764 -0.04170396
#> 9:  0.3220780  0.187249608 -0.180722562  0.52052004  0.43714616  0.13228281
#>        alphas7     alphas8
#>          <num>       <num>
#> 1: -0.02847968  0.25131927
#> 2:  0.46762033 -0.28151218
#> 3: -0.45151147 -0.50113650
#> 4: -0.44908389 -0.26316390
#> 5:  0.11832901  0.31298999
#> 6:  0.57650833 -0.35300400
#> 7: -0.04118176  0.26668701
#> 8: -0.16110446  0.08106783
#> 9: -0.03109641  0.48675248
#> 
#> $gammas0
#>           gammas1      gammas2      gammas3      gammas4     gammas5
#>             <num>        <num>        <num>        <num>       <num>
#>  1: -0.2247956069 -0.268762762 -0.180394316  0.222348371 -0.30092049
#>  2:  0.0175838398  0.177687532 -0.298911720 -0.041784559 -0.09111097
#>  3: -0.2576076055 -0.175443927  0.178717786 -0.529519189 -0.18043272
#>  4:  0.1479472725 -0.088454266  0.069163882  0.217056712  0.16726564
#>  5:  0.0858940079 -0.087735308 -0.015520307  0.332760370 -0.13388850
#>  6: -0.0062634265  0.202736159  0.119096124 -0.436497716 -0.22923737
#>  7: -0.0811124294 -0.104663893 -0.205425713 -0.255736793  0.15108197
#>  8: -0.6729482134  0.417876989  0.208225840  0.270178727 -0.01642642
#>  9:  0.0379649453  0.044739257  0.120116710  0.036624299  0.56157302
#> 10: -0.2181054837 -0.067854487 -0.114378161  0.181480140 -0.15899739
#> 11:  0.3893229450  0.068645984 -0.059924965  0.161721122 -0.23021612
#> 12:  0.1599691886  0.315491388  0.024223837 -0.006684231  0.17771568
#> 13:  0.2494794721  0.243512687  0.502522098 -0.008462921  0.05281381
#> 14: -0.0066476422  0.023585491 -0.005191355  0.104224942 -0.02038511
#> 15:  0.2075844883 -0.282722634  0.217172457 -0.120945134 -0.27658890
#> 16:  0.0789946673  0.002229003  0.112568804 -0.036351911 -0.09773665
#> 17:  0.0000971901 -0.429651688  0.026360843  0.176686594  0.13223547
#> 18:  0.2171860426  0.341218990 -0.436647122 -0.014493154 -0.12508018
#> 19: -0.0881298634 -0.075990205 -0.423893917 -0.250725603  0.37341100
#> 20: -0.0364137885 -0.256444309  0.162119195 -0.001880067  0.24492422
#>           gammas1      gammas2      gammas3      gammas4     gammas5
#>         gammas6      gammas7      gammas8
#>           <num>        <num>        <num>
#>  1:  0.22504209 -0.130319195 -0.346996059
#>  2:  0.23675510  0.123777955  0.075854726
#>  3: -0.24701208  0.236917971  0.284672769
#>  4: -0.08520769  0.086797272 -0.253419484
#>  5: -0.35236840  0.648776843  0.103439840
#>  6:  0.08901469  0.141215583 -0.340199773
#>  7:  0.35496791 -0.055017924  0.028131793
#>  8:  0.01828035 -0.105003681  0.082344453
#>  9:  0.11756614  0.209431533 -0.061495518
#> 10:  0.01349805 -0.095472591  0.181030943
#> 11:  0.10857575 -0.305245881  0.533888082
#> 12: -0.40955254 -0.254230128 -0.098681803
#> 13:  0.44305168  0.095962075  0.073725166
#> 14: -0.08463012  0.007199696  0.162724818
#> 15: -0.02802126 -0.117949268 -0.009900736
#> 16: -0.28799008 -0.338596778 -0.376137186
#> 17:  0.20513432  0.072427393 -0.133836476
#> 18: -0.03944587  0.128626906 -0.181451526
#> 19: -0.09573202 -0.080505313  0.157417883
#> 20: -0.18192604 -0.268792467  0.118888087
#>         gammas6      gammas7      gammas8
#> 
#> attr(,"class")
#> [1] "BayesAMMI"

plot(x = fm1, plot_selection = 1)

plot(x = fm1, plot_selection = 2)

plot(x = fm1, plot_selection = 3)

plot(x = fm1, plot_selection = 4)

plot(x = fm1, plot_selection = 5)

plot(x = fm1, plot_selection = 6)


biplots(fm1)
#> [[1]]
#>    .nIter  alphas1_1  alphas1_2  alphas1_3 alphas1_4 alphas1_5 alphas1_6
#>     <int>      <num>      <num>      <num>     <num>     <num>     <num>
#> 1:      7 -0.3812275 -0.2475437 -0.1646604   0.51505 0.2830484  0.271115
#> 2:     12 -0.3812275 -0.2475437 -0.1646604   0.51505 0.2830484  0.271115
#> 3:     17 -0.3812275 -0.2475437 -0.1646604   0.51505 0.2830484  0.271115
#>    alphas1_7  alphas1_8 alphas1_9 alphas2_1 alphas2_2 alphas2_3    alphas2_4
#>        <num>      <num>     <num>     <num>     <num>     <num>        <num>
#> 1: -0.118755 -0.4791048  0.322078 0.2263769 0.3181816 0.1484747 -0.003274222
#> 2: -0.118755 -0.4791048  0.322078 0.2263769 0.3181816 0.1484747 -0.003274222
#> 3: -0.118755 -0.4791048  0.322078 0.2263769 0.3181816 0.1484747 -0.003274222
#>     alphas2_5  alphas2_6 alphas2_7  alphas2_8 alphas2_9 alphas3_1   alphas3_2
#>         <num>      <num>     <num>      <num>     <num>     <num>       <num>
#> 1: -0.3425842 -0.2195554 0.3788754 -0.6937443 0.1872496 0.6409174 0.006538921
#> 2: -0.3425842 -0.2195554 0.3788754 -0.6937443 0.1872496 0.6409174 0.006538921
#> 3: -0.3425842 -0.2195554 0.3788754 -0.6937443 0.1872496 0.6409174 0.006538921
#>     alphas3_3  alphas3_4 alphas3_5   alphas3_6  alphas3_7  alphas3_8  alphas3_9
#>         <num>      <num>     <num>       <num>      <num>      <num>      <num>
#> 1: 0.05762135 0.05589729 0.3678129 -0.09131233 -0.5688039 -0.2879491 -0.1807226
#> 2: 0.05762135 0.05589729 0.3678129 -0.09131233 -0.5688039 -0.2879491 -0.1807226
#> 3: 0.05762135 0.05589729 0.3678129 -0.09131233 -0.5688039 -0.2879491 -0.1807226
#>     alphas4_1 alphas4_2 alphas4_3 alphas4_4  alphas4_5   alphas4_6 alphas4_7
#>         <num>     <num>     <num>     <num>      <num>       <num>     <num>
#> 1: 0.06276348 0.2818849 -0.209717 0.1967813 -0.4892306 -0.08018815 -0.513689
#> 2: 0.06276348 0.2818849 -0.209717 0.1967813 -0.4892306 -0.08018815 -0.513689
#> 3: 0.06276348 0.2818849 -0.209717 0.1967813 -0.4892306 -0.08018815 -0.513689
#>    alphas4_8 alphas4_9  alphas5_1   alphas5_2 alphas5_3  alphas5_4 alphas5_5
#>        <num>     <num>      <num>       <num>     <num>      <num>     <num>
#> 1: 0.2308751   0.52052 -0.2744343 -0.01561052 0.5715073 -0.5366937 0.2012036
#> 2: 0.2308751   0.52052 -0.2744343 -0.01561052 0.5715073 -0.5366937 0.2012036
#> 3: 0.2308751   0.52052 -0.2744343 -0.01561052 0.5715073 -0.5366937 0.2012036
#>     alphas5_6  alphas5_7   alphas5_8 alphas5_9 alphas6_1  alphas6_2 alphas6_3
#>         <num>      <num>       <num>     <num>     <num>      <num>     <num>
#> 1: -0.0322638 -0.2637771 -0.08707764 0.4371462 0.3718965 -0.5905151  0.103965
#> 2: -0.0322638 -0.2637771 -0.08707764 0.4371462 0.3718965 -0.5905151  0.103965
#> 3: -0.0322638 -0.2637771 -0.08707764 0.4371462 0.3718965 -0.5905151  0.103965
#>    alphas6_4  alphas6_5 alphas6_6  alphas6_7   alphas6_8 alphas6_9   alphas7_1
#>        <num>      <num>     <num>      <num>       <num>     <num>       <num>
#> 1: -0.150939 -0.4053744 0.5425848 0.03780326 -0.04170396 0.1322828 -0.02847968
#> 2: -0.150939 -0.4053744 0.5425848 0.03780326 -0.04170396 0.1322828 -0.02847968
#> 3: -0.150939 -0.4053744 0.5425848 0.03780326 -0.04170396 0.1322828 -0.02847968
#>    alphas7_2  alphas7_3  alphas7_4 alphas7_5 alphas7_6   alphas7_7  alphas7_8
#>        <num>      <num>      <num>     <num>     <num>       <num>      <num>
#> 1: 0.4676203 -0.4515115 -0.4490839  0.118329 0.5765083 -0.04118176 -0.1611045
#> 2: 0.4676203 -0.4515115 -0.4490839  0.118329 0.5765083 -0.04118176 -0.1611045
#> 3: 0.4676203 -0.4515115 -0.4490839  0.118329 0.5765083 -0.04118176 -0.1611045
#>      alphas7_9 alphas8_1  alphas8_2  alphas8_3  alphas8_4 alphas8_5 alphas8_6
#>          <num>     <num>      <num>      <num>      <num>     <num>     <num>
#> 1: -0.03109641 0.2513193 -0.2815122 -0.5011365 -0.2631639   0.31299 -0.353004
#> 2: -0.03109641 0.2513193 -0.2815122 -0.5011365 -0.2631639   0.31299 -0.353004
#> 3: -0.03109641 0.2513193 -0.2815122 -0.5011365 -0.2631639   0.31299 -0.353004
#>    alphas8_7  alphas8_8 alphas8_9
#>        <num>      <num>     <num>
#> 1:  0.266687 0.08106783 0.4867525
#> 2:  0.266687 0.08106783 0.4867525
#> 3:  0.266687 0.08106783 0.4867525
#> 
#> [[2]]
#>    .nIter  gammas1_1  gammas1_2  gammas1_3 gammas1_4  gammas1_5    gammas1_6
#>     <int>      <num>      <num>      <num>     <num>      <num>        <num>
#> 1:      7 -0.2247956 0.01758384 -0.2576076 0.1479473 0.08589401 -0.006263427
#> 2:     12 -0.2247956 0.01758384 -0.2576076 0.1479473 0.08589401 -0.006263427
#> 3:     17 -0.2247956 0.01758384 -0.2576076 0.1479473 0.08589401 -0.006263427
#>      gammas1_7  gammas1_8  gammas1_9 gammas1_10 gammas1_11 gammas1_12
#>          <num>      <num>      <num>      <num>      <num>      <num>
#> 1: -0.08111243 -0.6729482 0.03796495 -0.2181055  0.3893229  0.1599692
#> 2: -0.08111243 -0.6729482 0.03796495 -0.2181055  0.3893229  0.1599692
#> 3: -0.08111243 -0.6729482 0.03796495 -0.2181055  0.3893229  0.1599692
#>    gammas1_13   gammas1_14 gammas1_15 gammas1_16  gammas1_17 gammas1_18
#>         <num>        <num>      <num>      <num>       <num>      <num>
#> 1:  0.2494795 -0.006647642  0.2075845 0.07899467 9.71901e-05   0.217186
#> 2:  0.2494795 -0.006647642  0.2075845 0.07899467 9.71901e-05   0.217186
#> 3:  0.2494795 -0.006647642  0.2075845 0.07899467 9.71901e-05   0.217186
#>     gammas1_19  gammas1_20  gammas2_1 gammas2_2  gammas2_3   gammas2_4
#>          <num>       <num>      <num>     <num>      <num>       <num>
#> 1: -0.08812986 -0.03641379 -0.2687628 0.1776875 -0.1754439 -0.08845427
#> 2: -0.08812986 -0.03641379 -0.2687628 0.1776875 -0.1754439 -0.08845427
#> 3: -0.08812986 -0.03641379 -0.2687628 0.1776875 -0.1754439 -0.08845427
#>      gammas2_5 gammas2_6  gammas2_7 gammas2_8  gammas2_9  gammas2_10 gammas2_11
#>          <num>     <num>      <num>     <num>      <num>       <num>      <num>
#> 1: -0.08773531 0.2027362 -0.1046639  0.417877 0.04473926 -0.06785449 0.06864598
#> 2: -0.08773531 0.2027362 -0.1046639  0.417877 0.04473926 -0.06785449 0.06864598
#> 3: -0.08773531 0.2027362 -0.1046639  0.417877 0.04473926 -0.06785449 0.06864598
#>    gammas2_12 gammas2_13 gammas2_14 gammas2_15  gammas2_16 gammas2_17
#>         <num>      <num>      <num>      <num>       <num>      <num>
#> 1:  0.3154914  0.2435127 0.02358549 -0.2827226 0.002229003 -0.4296517
#> 2:  0.3154914  0.2435127 0.02358549 -0.2827226 0.002229003 -0.4296517
#> 3:  0.3154914  0.2435127 0.02358549 -0.2827226 0.002229003 -0.4296517
#>    gammas2_18  gammas2_19 gammas2_20  gammas3_1  gammas3_2 gammas3_3  gammas3_4
#>         <num>       <num>      <num>      <num>      <num>     <num>      <num>
#> 1:   0.341219 -0.07599021 -0.2564443 -0.1803943 -0.2989117 0.1787178 0.06916388
#> 2:   0.341219 -0.07599021 -0.2564443 -0.1803943 -0.2989117 0.1787178 0.06916388
#> 3:   0.341219 -0.07599021 -0.2564443 -0.1803943 -0.2989117 0.1787178 0.06916388
#>      gammas3_5 gammas3_6  gammas3_7 gammas3_8 gammas3_9 gammas3_10  gammas3_11
#>          <num>     <num>      <num>     <num>     <num>      <num>       <num>
#> 1: -0.01552031 0.1190961 -0.2054257 0.2082258 0.1201167 -0.1143782 -0.05992497
#> 2: -0.01552031 0.1190961 -0.2054257 0.2082258 0.1201167 -0.1143782 -0.05992497
#> 3: -0.01552031 0.1190961 -0.2054257 0.2082258 0.1201167 -0.1143782 -0.05992497
#>    gammas3_12 gammas3_13   gammas3_14 gammas3_15 gammas3_16 gammas3_17
#>         <num>      <num>        <num>      <num>      <num>      <num>
#> 1: 0.02422384  0.5025221 -0.005191355  0.2171725  0.1125688 0.02636084
#> 2: 0.02422384  0.5025221 -0.005191355  0.2171725  0.1125688 0.02636084
#> 3: 0.02422384  0.5025221 -0.005191355  0.2171725  0.1125688 0.02636084
#>    gammas3_18 gammas3_19 gammas3_20 gammas4_1   gammas4_2  gammas4_3 gammas4_4
#>         <num>      <num>      <num>     <num>       <num>      <num>     <num>
#> 1: -0.4366471 -0.4238939  0.1621192 0.2223484 -0.04178456 -0.5295192 0.2170567
#> 2: -0.4366471 -0.4238939  0.1621192 0.2223484 -0.04178456 -0.5295192 0.2170567
#> 3: -0.4366471 -0.4238939  0.1621192 0.2223484 -0.04178456 -0.5295192 0.2170567
#>    gammas4_5  gammas4_6  gammas4_7 gammas4_8 gammas4_9 gammas4_10 gammas4_11
#>        <num>      <num>      <num>     <num>     <num>      <num>      <num>
#> 1: 0.3327604 -0.4364977 -0.2557368 0.2701787 0.0366243  0.1814801  0.1617211
#> 2: 0.3327604 -0.4364977 -0.2557368 0.2701787 0.0366243  0.1814801  0.1617211
#> 3: 0.3327604 -0.4364977 -0.2557368 0.2701787 0.0366243  0.1814801  0.1617211
#>      gammas4_12   gammas4_13 gammas4_14 gammas4_15  gammas4_16 gammas4_17
#>           <num>        <num>      <num>      <num>       <num>      <num>
#> 1: -0.006684231 -0.008462921  0.1042249 -0.1209451 -0.03635191  0.1766866
#> 2: -0.006684231 -0.008462921  0.1042249 -0.1209451 -0.03635191  0.1766866
#> 3: -0.006684231 -0.008462921  0.1042249 -0.1209451 -0.03635191  0.1766866
#>     gammas4_18 gammas4_19   gammas4_20  gammas5_1   gammas5_2  gammas5_3
#>          <num>      <num>        <num>      <num>       <num>      <num>
#> 1: -0.01449315 -0.2507256 -0.001880067 -0.3009205 -0.09111097 -0.1804327
#> 2: -0.01449315 -0.2507256 -0.001880067 -0.3009205 -0.09111097 -0.1804327
#> 3: -0.01449315 -0.2507256 -0.001880067 -0.3009205 -0.09111097 -0.1804327
#>    gammas5_4  gammas5_5  gammas5_6 gammas5_7   gammas5_8 gammas5_9 gammas5_10
#>        <num>      <num>      <num>     <num>       <num>     <num>      <num>
#> 1: 0.1672656 -0.1338885 -0.2292374  0.151082 -0.01642642  0.561573 -0.1589974
#> 2: 0.1672656 -0.1338885 -0.2292374  0.151082 -0.01642642  0.561573 -0.1589974
#> 3: 0.1672656 -0.1338885 -0.2292374  0.151082 -0.01642642  0.561573 -0.1589974
#>    gammas5_11 gammas5_12 gammas5_13  gammas5_14 gammas5_15  gammas5_16
#>         <num>      <num>      <num>       <num>      <num>       <num>
#> 1: -0.2302161  0.1777157 0.05281381 -0.02038511 -0.2765889 -0.09773665
#> 2: -0.2302161  0.1777157 0.05281381 -0.02038511 -0.2765889 -0.09773665
#> 3: -0.2302161  0.1777157 0.05281381 -0.02038511 -0.2765889 -0.09773665
#>    gammas5_17 gammas5_18 gammas5_19 gammas5_20 gammas6_1 gammas6_2  gammas6_3
#>         <num>      <num>      <num>      <num>     <num>     <num>      <num>
#> 1:  0.1322355 -0.1250802   0.373411  0.2449242 0.2250421 0.2367551 -0.2470121
#> 2:  0.1322355 -0.1250802   0.373411  0.2449242 0.2250421 0.2367551 -0.2470121
#> 3:  0.1322355 -0.1250802   0.373411  0.2449242 0.2250421 0.2367551 -0.2470121
#>      gammas6_4  gammas6_5  gammas6_6 gammas6_7  gammas6_8 gammas6_9 gammas6_10
#>          <num>      <num>      <num>     <num>      <num>     <num>      <num>
#> 1: -0.08520769 -0.3523684 0.08901469 0.3549679 0.01828035 0.1175661 0.01349805
#> 2: -0.08520769 -0.3523684 0.08901469 0.3549679 0.01828035 0.1175661 0.01349805
#> 3: -0.08520769 -0.3523684 0.08901469 0.3549679 0.01828035 0.1175661 0.01349805
#>    gammas6_11 gammas6_12 gammas6_13  gammas6_14  gammas6_15 gammas6_16
#>         <num>      <num>      <num>       <num>       <num>      <num>
#> 1:  0.1085757 -0.4095525  0.4430517 -0.08463012 -0.02802126 -0.2879901
#> 2:  0.1085757 -0.4095525  0.4430517 -0.08463012 -0.02802126 -0.2879901
#> 3:  0.1085757 -0.4095525  0.4430517 -0.08463012 -0.02802126 -0.2879901
#>    gammas6_17  gammas6_18  gammas6_19 gammas6_20  gammas7_1 gammas7_2 gammas7_3
#>         <num>       <num>       <num>      <num>      <num>     <num>     <num>
#> 1:  0.2051343 -0.03944587 -0.09573202  -0.181926 -0.1303192  0.123778  0.236918
#> 2:  0.2051343 -0.03944587 -0.09573202  -0.181926 -0.1303192  0.123778  0.236918
#> 3:  0.2051343 -0.03944587 -0.09573202  -0.181926 -0.1303192  0.123778  0.236918
#>     gammas7_4 gammas7_5 gammas7_6   gammas7_7  gammas7_8 gammas7_9  gammas7_10
#>         <num>     <num>     <num>       <num>      <num>     <num>       <num>
#> 1: 0.08679727 0.6487768 0.1412156 -0.05501792 -0.1050037 0.2094315 -0.09547259
#> 2: 0.08679727 0.6487768 0.1412156 -0.05501792 -0.1050037 0.2094315 -0.09547259
#> 3: 0.08679727 0.6487768 0.1412156 -0.05501792 -0.1050037 0.2094315 -0.09547259
#>    gammas7_11 gammas7_12 gammas7_13  gammas7_14 gammas7_15 gammas7_16
#>         <num>      <num>      <num>       <num>      <num>      <num>
#> 1: -0.3052459 -0.2542301 0.09596207 0.007199696 -0.1179493 -0.3385968
#> 2: -0.3052459 -0.2542301 0.09596207 0.007199696 -0.1179493 -0.3385968
#> 3: -0.3052459 -0.2542301 0.09596207 0.007199696 -0.1179493 -0.3385968
#>    gammas7_17 gammas7_18  gammas7_19 gammas7_20  gammas8_1  gammas8_2 gammas8_3
#>         <num>      <num>       <num>      <num>      <num>      <num>     <num>
#> 1: 0.07242739  0.1286269 -0.08050531 -0.2687925 -0.3469961 0.07585473 0.2846728
#> 2: 0.07242739  0.1286269 -0.08050531 -0.2687925 -0.3469961 0.07585473 0.2846728
#> 3: 0.07242739  0.1286269 -0.08050531 -0.2687925 -0.3469961 0.07585473 0.2846728
#>     gammas8_4 gammas8_5  gammas8_6  gammas8_7  gammas8_8   gammas8_9 gammas8_10
#>         <num>     <num>      <num>      <num>      <num>       <num>      <num>
#> 1: -0.2534195 0.1034398 -0.3401998 0.02813179 0.08234445 -0.06149552  0.1810309
#> 2: -0.2534195 0.1034398 -0.3401998 0.02813179 0.08234445 -0.06149552  0.1810309
#> 3: -0.2534195 0.1034398 -0.3401998 0.02813179 0.08234445 -0.06149552  0.1810309
#>    gammas8_11 gammas8_12 gammas8_13 gammas8_14   gammas8_15 gammas8_16
#>         <num>      <num>      <num>      <num>        <num>      <num>
#> 1:  0.5338881 -0.0986818 0.07372517  0.1627248 -0.009900736 -0.3761372
#> 2:  0.5338881 -0.0986818 0.07372517  0.1627248 -0.009900736 -0.3761372
#> 3:  0.5338881 -0.0986818 0.07372517  0.1627248 -0.009900736 -0.3761372
#>    gammas8_17 gammas8_18 gammas8_19 gammas8_20
#>         <num>      <num>      <num>      <num>
#> 1: -0.1338365 -0.1814515  0.1574179  0.1188881
#> 2: -0.1338365 -0.1814515  0.1574179  0.1188881
#> 3: -0.1338365 -0.1814515  0.1574179  0.1188881
#>