Calcuates Genotype by Environment Interaction Model
Usage
ge_model(.data, .y, .gen, .env, .rep)
# Default S3 method
ge_model(.data, .y, .gen, .env, .rep)
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
Muhammad Yaseen (myaseen208@gmail.com)
Examples
data(Maiz)
fm1 <-
ge_model(
.data = Maiz
, .y = Yield
, .gen = Gen
, .env = Env
, .rep = Rep
)
fm1
#> Linear mixed model fit by REML ['lmerMod']
#> Formula: Y ~ Env + Gen + Env:Gen + (1 | Env:Rep)
#> Data: df1
#> REML criterion at convergence: 9040.428
#> Random effects:
#> Groups Name Std.Dev.
#> Env:Rep (Intercept) 391.2
#> Residual 776.4
#> Number of obs: 720, groups: Env:Rep, 80
#> Fixed Effects:
#> (Intercept) Env2 Env3 Env4 Env5 Env6
#> 3621.550 106.775 1932.475 944.025 758.250 2815.175
#> Env7 Env8 Env9 Env10 Env11 Env12
#> -789.150 2389.850 1025.150 -521.675 811.300 3251.725
#> Env13 Env14 Env15 Env16 Env17 Env18
#> 3099.000 2227.025 979.375 1388.125 793.300 -277.075
#> Env19 Env20 Gen2 Gen3 Gen4 Gen5
#> -1989.550 965.475 -195.100 -175.700 98.350 -456.925
#> Gen6 Gen7 Gen8 Gen9 Env2:Gen2 Env3:Gen2
#> 494.525 -267.525 907.225 -486.025 385.425 -422.250
#> Env4:Gen2 Env5:Gen2 Env6:Gen2 Env7:Gen2 Env8:Gen2 Env9:Gen2
#> 592.100 1016.775 -205.350 -122.700 -538.600 262.300
#> Env10:Gen2 Env11:Gen2 Env12:Gen2 Env13:Gen2 Env14:Gen2 Env15:Gen2
#> 66.975 110.775 892.725 -898.475 279.000 -280.000
#> Env16:Gen2 Env17:Gen2 Env18:Gen2 Env19:Gen2 Env20:Gen2 Env2:Gen3
#> 381.875 -9.200 1265.825 844.850 4.550 529.500
#> Env3:Gen3 Env4:Gen3 Env5:Gen3 Env6:Gen3 Env7:Gen3 Env8:Gen3
#> -261.300 746.400 -26.175 197.775 872.375 -1104.950
#> Env9:Gen3 Env10:Gen3 Env11:Gen3 Env12:Gen3 Env13:Gen3 Env14:Gen3
#> 976.500 -138.800 269.050 1029.450 -250.975 213.600
#> Env15:Gen3 Env16:Gen3 Env17:Gen3 Env18:Gen3 Env19:Gen3 Env20:Gen3
#> 112.175 621.500 510.025 1125.825 1602.875 606.850
#> Env2:Gen4 Env3:Gen4 Env4:Gen4 Env5:Gen4 Env6:Gen4 Env7:Gen4
#> 712.500 -1109.875 1365.575 1194.100 142.725 66.850
#> Env8:Gen4 Env9:Gen4 Env10:Gen4 Env11:Gen4 Env12:Gen4 Env13:Gen4
#> -3593.525 118.875 -354.900 2586.025 1413.425 512.825
#> Env14:Gen4 Env15:Gen4 Env16:Gen4 Env17:Gen4 Env18:Gen4 Env19:Gen4
#> 492.450 1631.900 1243.075 647.650 2174.875 502.250
#> Env20:Gen4 Env2:Gen5 Env3:Gen5 Env4:Gen5 Env5:Gen5 Env6:Gen5
#> 302.600 807.450 1075.425 1722.350 1490.675 901.900
#> Env7:Gen5 Env8:Gen5 Env9:Gen5 Env10:Gen5 Env11:Gen5 Env12:Gen5
#> 1180.125 -2822.875 1398.575 45.050 2019.250 1689.250
#> Env13:Gen5 Env14:Gen5 Env15:Gen5 Env16:Gen5 Env17:Gen5 Env18:Gen5
#> 909.950 967.325 2183.975 1517.050 1496.450 1610.250
#> Env19:Gen5 Env20:Gen5 Env2:Gen6 Env3:Gen6 Env4:Gen6 Env5:Gen6
#> 1897.450 1645.775 654.700 -843.725 919.800 717.025
#> Env6:Gen6 Env7:Gen6 Env8:Gen6 Env9:Gen6 Env10:Gen6 Env11:Gen6
#> -15.300 621.950 -3523.350 461.500 -570.900 1222.900
#> Env12:Gen6 Env13:Gen6 Env14:Gen6 Env15:Gen6 Env16:Gen6 Env17:Gen6
#> 268.775 46.850 37.125 865.900 225.975 897.675
#> Env18:Gen6 Env19:Gen6 Env20:Gen6 Env2:Gen7 Env3:Gen7 Env4:Gen7
#> 1494.025 884.500 6.925 1306.225 102.525 44.225
#> Env5:Gen7 Env6:Gen7 Env7:Gen7 Env8:Gen7 Env9:Gen7 Env10:Gen7
#> 164.900 575.350 972.000 -1538.300 -60.975 56.575
#> Env11:Gen7 Env12:Gen7 Env13:Gen7 Env14:Gen7 Env15:Gen7 Env16:Gen7
#> 886.250 837.825 -909.175 238.725 12.525 271.275
#> Env17:Gen7 Env18:Gen7 Env19:Gen7 Env20:Gen7 Env2:Gen8 Env3:Gen8
#> -285.750 2199.400 1846.075 -263.425 -1242.300 -1213.175
#> Env4:Gen8 Env5:Gen8 Env6:Gen8 Env7:Gen8 Env8:Gen8 Env9:Gen8
#> -1031.300 -810.625 -2357.700 -651.950 -2434.725 -1552.875
#> Env10:Gen8 Env11:Gen8 Env12:Gen8 Env13:Gen8 Env14:Gen8 Env15:Gen8
#> -653.975 -1627.100 -1964.675 -3511.225 -1233.350 -1186.950
#> Env16:Gen8 Env17:Gen8 Env18:Gen8 Env19:Gen8 Env20:Gen8 Env2:Gen9
#> -1365.900 -79.075 -1311.325 95.125 -688.075 1257.750
#> Env3:Gen9 Env4:Gen9 Env5:Gen9 Env6:Gen9 Env7:Gen9 Env8:Gen9
#> -1288.400 1701.825 1513.375 -341.000 715.000 -2215.950
#> Env9:Gen9 Env10:Gen9 Env11:Gen9 Env12:Gen9 Env13:Gen9 Env14:Gen9
#> 1392.775 160.100 2483.100 1703.425 685.350 919.800
#> Env15:Gen9 Env16:Gen9 Env17:Gen9 Env18:Gen9 Env19:Gen9 Env20:Gen9
#> 774.575 754.725 1059.950 2385.950 1588.975 721.275