Skip to contents

Calcuates Environment Effects

Usage

# Default S3 method
e_eff(.data, .y, .gen, .env)

Arguments

.data

data.frame

.y

Response Variable

.gen

Genotypes Factor

.env

Environment Factor

Value

Environment Effects

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)

Examples


data(Maiz)
e_eff(
    .data  = Maiz
   , .y    = y
   , .gen  = entry
   , .env  = site
   )
#>             EEffs
#>  [1,] -1245.60722
#>  [2,]  -648.69333
#>  [3,]   246.78167
#>  [4,]   371.85944
#>  [5,]    97.09278
#>  [6,]  1447.16778
#>  [7,] -1628.79611
#>  [8,]  -830.45444
#>  [9,]   112.50667
#> [10,] -1921.71278
#> [11,]   449.05389
#> [12,]  2658.36222
#> [13,]  1473.96222
#> [14,]  1194.15944
#> [15,]   190.89000
#> [16,]   548.02611
#> [17,]    18.55111
#> [18,]  -306.59056
#> [19,] -2206.03500
#> [20,]   -20.52389