Skip to contents

Calcuates Genotype by Environment Interaction Means along with their Ranks

Usage

ge_means(.data, .y, .gen, .env)

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

Arguments

.data

data.frame

.y

Response Variable

.gen

Genotypes Factor

.env

Environment Factor

Value

Means and Ranks

References

Singh, R. K. and Chaudhary, B. D. (2004) Biometrical Methods in Quantitative Genetic Analysis. New Delhi: Kalyani.

Author

  1. Muhammad Yaseen (myaseen208@gmail.com)

  2. Kent M. Edkridge (keskridge1@unl.edu)

Examples


data(ge_data)

Yield.ge_means <-
          ge_means(
                .data  = ge_data
               , .y    = Yield
               , .gen  = Gen
               , .env  = Env
               )

Yield.ge_means$ge_means
#> # A tibble: 60 × 12
#> # Groups:   Gen [60]
#>    Gen       FSD  FSDR Okara Sargodha Gujranwala KotNaina   KSK Khanewal Sahiwal
#>    <fct>   <dbl> <dbl> <dbl>    <dbl>      <dbl>    <dbl> <dbl>    <dbl>   <dbl>
#>  1 013BT0… 4816  4524. 4048.    4508       3896.    3285  3717     5038.   4772 
#>  2 122557  4880. 4156. 2984.    4754       4292.    4092  3124.    4971    4758.
#>  3 122559  4135  4136  4377     4688.      4425     3744. 3011     5012.   5322.
#>  4 12B.25… 5899  4038. 3842.    5766       4716.    4084. 3074     4851    4659 
#>  5 12FJ26  4518  4348  3041     4022.      3942.    4094. 4202     4908.   4206.
#>  6 14B.10… 4070. 3834. 3606.    5075       3225     3992  3222.    4770    4535 
#>  7 14C036  3660. 4018. 2951     3980.      4693     3508. 3566.    4918.   4165 
#>  8 14C040  5011  4152. 3313     3895       3764.    2884. 3566     4392.   3968 
#>  9 9496    4589  3716  3781     4142.      4358.    3927  2948.    4995    4688.
#> 10 AUR0809 4966. 3782. 3850     4054       3984.    3505  2684     4448.   4324.
#> # ℹ 50 more rows
#> # ℹ 2 more variables: Bhakkar <dbl>, Bahawalnagar <dbl>
Yield.ge_means$ge_ranks
#>              1               2              3            4          
#> FSD          "12B.2511"      "V14170"       "DN126"      "PR120"    
#> FSDR         "V14170"        "PR119"        "PR118"      "QS3"      
#> Okara        "NIBGE GANDUM3" "V13348"       "PR118"      "122559"   
#> Sargodha     "NW181838"      "12B.2511"     "NRL1123"    "NR491"    
#> Gujranwala   "IVII"          "FAISALABAD08" "PAKISTAN13" "V14168"   
#> KotNaina     "PR115"         "V14170"       "WV1038"     "UOS1"     
#> KSK          "NR448"         "12FJ26"       "AZRC11"     "BARDC1016"
#> Khanewal     "LOCAL CHECK"   "DN126"        "UOS1"       "V14170"   
#> Sahiwal      "V14168"        "DN126"        "122559"     "MSH3"     
#> Bhakkar      "V14225"        "013BT034"     "BARDC1016"  "14C036"   
#> Bahawalnagar "V14154"        "KT335"        "V14225"     "PR115"    
#>              5              6              7              8            
#> FSD          "FAISALABAD08" "TWS12245"     "PAKISTAN13"   "AZRC20"     
#> FSDR         "LOCAL CHECK"  "AZRC11"       "UOS1"         "NRL1123"    
#> Okara        "BARDC1016"    "SRN13121"     "V14154"       "LOCAL CHECK"
#> Sargodha     "AUR0810"      "FAISALABAD08" "PR121"        "DN126"      
#> Gujranwala   "PR115"        "12B.2511"     "14C036"       "DN126"      
#> KotNaina     "PR121"        "V14168"       "CT12176"      "NW5201"     
#> KSK          "CT12176"      "IVII"         "NR443"        "SD1013"     
#> Khanewal     "PR115"        "NR491"        "NW181838"     "NRL1123"    
#> Sahiwal      "NR491"        "V14170"       "V13348"       "PR115"      
#> Bhakkar      "DN126"        "122559"       "FAISALABAD08" "IVII"       
#> Bahawalnagar "TWS12464"     "122559"       "SRN13121"     "DN111"      
#>              9               10         11              12        
#> FSD          "NW181838"      "AZRC11"   "NIBGE GANDUM3" "PR121"   
#> FSDR         "013BT034"      "DN126"    "PR120"         "AZRC20"  
#> Okara        "MSH3"          "DN126"    "PR121"         "013BT034"
#> Sargodha     "NIBGE GANDUM3" "CT12176"  "PR119"         "14B.1030"
#> Gujranwala   "CT12176"       "NRL1206"  "DN117"         "MSH3"    
#> KotNaina     "V14154"        "V13348"   "DN126"         "NRL1123" 
#> KSK          "PR115"         "TWS12464" "PR121"         "QS3"     
#> Khanewal     "013BT034"      "122559"   "WBG14"         "9496"    
#> Sahiwal      "UOS1"          "NR488"    "AZRC11"        "DN111"   
#> Bhakkar      "9496"          "CT12176"  "MSH3"          "V14154"  
#> Bahawalnagar "NR491"         "PR121"    "AZRC11"        "013BT034"
#>              13              14         15              16             
#> FSD          "V14168"        "NR488"    "LOCAL CHECK"   "V14225"       
#> FSDR         "NIBGE GANDUM3" "NR491"    "12FJ26"        "V14154"       
#> Okara        "PR115"         "V12066"   "V14227"        "NRL1206"      
#> Sargodha     "NR488"         "V14154"   "NW5201"        "PR118"        
#> Gujranwala   "TWS12245"      "122559"   "NR491"         "PR120"        
#> KotNaina     "MSH3"          "12FJ26"   "122557"        "12B.2511"     
#> KSK          "V13348"        "NRL1206"  "NR491"         "PR119"        
#> Khanewal     "122557"        "NR443"    "IVI"           "PAKISTAN13"   
#> Sahiwal      "FAISALABAD08"  "TWS12155" "NIBGE GANDUM3" "013BT034"     
#> Bhakkar      "12B.2511"      "NR488"    "NW181838"      "V14170"       
#> Bahawalnagar "V14170"        "14C036"   "IVII"          "NIBGE GANDUM3"
#>              17         18             19           20              21        
#> FSD          "SRN13121" "PR118"        "14C040"     "TWS12155"      "PR115"   
#> FSDR         "V14225"   "FAISALABAD08" "NR488"      "IVII"          "TWS12155"
#> Okara        "V14168"   "TWS12464"     "V14170"     "DN117"         "AZRC11"  
#> Sargodha     "TWS12464" "KT335"        "DN117"      "PAKISTAN13"    "KT325"   
#> Gujranwala   "NRL1123"  "9496"         "IVI"        "V14154"        "122557"  
#> KotNaina     "PR118"    "14B.1030"     "PAKISTAN13" "AZRC11"        "V14227"  
#> KSK          "AZRC20"   "013BT034"     "V14154"     "NIBGE GANDUM3" "V14225"  
#> Khanewal     "DN111"    "14C036"       "NW5201"     "12FJ26"        "CT12176" 
#> Sahiwal      "CT12176"  "122557"       "9496"       "NR487"         "12B.2511"
#> Bhakkar      "IVI"      "NR487"        "14B.1030"   "12FJ26"        "V14168"  
#> Bahawalnagar "14B.1030" "14C040"       "NR488"      "PR118"         "12B.2511"
#>              22            23          24         25             26          
#> FSD          "NR491"       "AUR0809"   "V14154"   "TWS12464"     "V14227"    
#> FSDR         "122557"      "14C040"    "122559"   "SRN13121"     "V14168"    
#> Okara        "AUR0809"     "12B.2511"  "IVI"      "TWS12155"     "AUR0810"   
#> Sargodha     "NRL1206"     "WV1038"    "NR487"    "122557"       "TWS12245"  
#> Gujranwala   "QS3"         "PR121"     "UOS1"     "LOCAL CHECK"  "AUR0810"   
#> KotNaina     "AZRC20"      "BARDC1016" "9496"     "NW181838"     "NR491"     
#> KSK          "PR118"       "V14170"    "V14227"   "SRN13121"     "PAKISTAN13"
#> Khanewal     "DANI16"      "V13348"    "12B.2511" "FAISALABAD08" "V14225"    
#> Sahiwal      "TWS12464"    "PR119"     "DN117"    "PR120"        "IVI"       
#> Bhakkar      "V13348"      "KT335"     "PR115"    "V12066"       "NW5201"    
#> Bahawalnagar "LOCAL CHECK" "NW181838"  "TWS12245" "NR487"        "NR448"     
#>              27            28         29              30           31        
#> FSD          "122557"      "NRL1123"  "MSH3"          "013BT034"   "IVII"    
#> FSDR         "MSH3"        "PR115"    "NW181838"      "V14227"     "12B.2511"
#> Okara        "9496"        "WV1038"   "UOS1"          "PAKISTAN13" "14B.1030"
#> Sargodha     "V13348"      "122559"   "V14170"        "AZRC20"     "V14225"  
#> Gujranwala   "V12066"      "SRN13121" "TWS12155"      "WV1038"     "AUR0809" 
#> KotNaina     "NR443"       "NR448"    "122559"        "PR120"      "PR119"   
#> KSK          "V12066"      "14C036"   "14C040"        "V14168"     "NRL1123" 
#> Khanewal     "AZRC18"      "AZRC20"   "NIBGE GANDUM3" "TWS12464"   "DN117"   
#> Sahiwal      "PR118"       "V14225"   "14B.1030"      "KT325"      "V14154"  
#> Bhakkar      "LOCAL CHECK" "PR119"    "AZRC11"        "NR448"      "NR491"   
#> Bahawalnagar "V14168"      "9496"     "NW5201"        "KT325"      "NR443"   
#>              32            33              34             35        
#> FSD          "NR448"       "PR119"         "QS3"          "9496"    
#> FSDR         "V13348"      "14C036"        "CT12176"      "TWS12245"
#> Okara        "TWS12245"    "PR119"         "NW181838"     "V14225"  
#> Sargodha     "SRN13121"    "UOS1"          "IVII"         "TWS12155"
#> Gujranwala   "12FJ26"      "NR448"         "PR119"        "013BT034"
#> KotNaina     "NR487"       "DN117"         "FAISALABAD08" "KT335"   
#> KSK          "TWS12155"    "UOS1"          "DANI16"       "MSH3"    
#> Khanewal     "MSH3"        "NR488"         "14B.1030"     "KT335"   
#> Sahiwal      "LOCAL CHECK" "BARDC1016"     "QS3"          "NW181838"
#> Bhakkar      "DN111"       "NIBGE GANDUM3" "NRL1123"      "TWS12245"
#> Bahawalnagar "V12066"      "V14227"        "AZRC18"       "UOS1"    
#>              36             37              38            39            
#> FSD          "12FJ26"       "DN117"         "UOS1"        "IVI"         
#> FSDR         "DN117"        "IVI"           "BARDC1016"   "NRL1206"     
#> Okara        "CT12176"      "NIBGE GANDUM4" "QS3"         "FAISALABAD08"
#> Sargodha     "V12066"       "PR120"         "013BT034"    "NR448"       
#> Gujranwala   "WBG14"        "TWS12464"      "14C040"      "NW5201"      
#> KotNaina     "LOCAL CHECK"  "TWS12245"      "WBG14"       "V14225"      
#> KSK          "NR488"        "PR120"         "LOCAL CHECK" "NW181838"    
#> Khanewal     "V14168"       "V14227"        "AZRC11"      "PR120"       
#> Sahiwal      "WV1038"       "AZRC20"        "NR448"       "AUR0809"     
#> Bhakkar      "AZRC20"       "QS3"           "NR443"       "WV1038"      
#> Bahawalnagar "FAISALABAD08" "NRL1206"       "V13348"      "DN126"       
#>              40         41           42              43            44        
#> FSD          "WBG14"    "NRL1206"    "122559"        "DANI16"      "14B.1030"
#> FSDR         "SD1013"   "TWS12464"   "PR121"         "NR443"       "14B.1030"
#> Okara        "NR488"    "NR448"      "PR120"         "14C040"      "AZRC20"  
#> Sargodha     "AZRC18"   "PR115"      "AZRC11"        "LOCAL CHECK" "DN111"   
#> Gujranwala   "PR118"    "NW181838"   "NIBGE GANDUM4" "V14225"      "V14170"  
#> KotNaina     "SRN13121" "TWS12155"   "14C036"        "AUR0809"     "DN111"   
#> KSK          "KT325"    "NR487"      "DN111"         "WBG14"       "14B.1030"
#> Khanewal     "IVII"     "PR119"      "TWS12245"      "WV1038"      "V14154"  
#> Sahiwal      "KT335"    "PAKISTAN13" "IVII"          "TWS12245"    "NR443"   
#> Bhakkar      "PR121"    "AUR0810"    "UOS1"          "PAKISTAN13"  "V14227"  
#> Bahawalnagar "12FJ26"   "PAKISTAN13" "DN117"         "IVI"         "WBG14"   
#>              45             46              47              48       
#> FSD          "WV1038"       "AUR0810"       "NR487"         "KT325"  
#> FSDR         "AUR0809"      "WV1038"        "DANI16"        "9496"   
#> Okara        "DANI16"       "NR443"         "NR487"         "WBG14"  
#> Sargodha     "V14168"       "MSH3"          "NIBGE GANDUM4" "9496"   
#> Gujranwala   "DN111"        "NIBGE GANDUM3" "NR488"         "NR443"  
#> KotNaina     "SD1013"       "NIBGE GANDUM4" "TWS12464"      "IVII"   
#> KSK          "FAISALABAD08" "122557"        "IVI"           "AZRC18" 
#> Khanewal     "PR118"        "NIBGE GANDUM4" "NR487"         "AUR0809"
#> Sahiwal      "NW5201"       "AUR0810"       "WBG14"         "V12066" 
#> Bhakkar      "DN117"        "AZRC18"        "PR118"         "DANI16" 
#> Bahawalnagar "TWS12155"     "AZRC20"        "MSH3"          "NRL1123"
#>              49          50         51          52         53             
#> FSD          "V12066"    "V13348"   "DN111"     "SD1013"   "NR443"        
#> FSDR         "NW5201"    "KT325"    "V12066"    "NR487"    "PAKISTAN13"   
#> Okara        "NW5201"    "NRL1123"  "KT335"     "SD1013"   "AZRC18"       
#> Sargodha     "BARDC1016" "AUR0809"  "12FJ26"    "NR443"    "14C036"       
#> Gujranwala   "V14227"    "KT335"    "BARDC1016" "DANI16"   "SD1013"       
#> KotNaina     "013BT034"  "AUR0810"  "DANI16"    "NR488"    "NIBGE GANDUM3"
#> KSK          "AUR0810"   "12B.2511" "KT335"     "122559"   "TWS12245"     
#> Khanewal     "14C040"    "KT325"    "AUR0810"   "TWS12155" "PR121"        
#> Sahiwal      "12FJ26"    "NRL1123"  "14C036"    "NRL1206"  "14C040"       
#> Bhakkar      "122557"    "NRL1206"  "14C040"    "WBG14"    "TWS12464"     
#> Bahawalnagar "PR119"     "CT12176"  "BARDC1016" "PR120"    "AUR0810"      
#>              54              55        56              57             
#> FSD          "NIBGE GANDUM4" "NW5201"  "AZRC18"        "BARDC1016"    
#> FSDR         "WBG14"         "NR448"   "NIBGE GANDUM4" "AUR0810"      
#> Okara        "12FJ26"        "122557"  "14C036"        "KT325"        
#> Sargodha     "14C040"        "QS3"     "V14227"        "WBG14"        
#> Gujranwala   "NR487"         "AZRC11"  "AZRC18"        "14B.1030"     
#> KotNaina     "NRL1206"       "AZRC18"  "V12066"        "KT325"        
#> KSK          "9496"          "NW5201"  "NIBGE GANDUM4" "WV1038"       
#> Khanewal     "NR448"         "NRL1206" "QS3"           "V12066"       
#> Sahiwal      "PR121"         "DANI16"  "V14227"        "NIBGE GANDUM4"
#> Bhakkar      "PR120"         "KT325"   "TWS12155"      "SRN13121"     
#> Bahawalnagar "122557"        "WV1038"  "AUR0809"       "NIBGE GANDUM4"
#>              58              59         60        
#> FSD          "14C036"        "KT335"    "CT12176" 
#> FSDR         "KT335"         "AZRC18"   "DN111"   
#> Okara        "DN111"         "NR491"    "IVII"    
#> Sargodha     "IVI"           "DANI16"   "SD1013"  
#> Gujranwala   "V13348"        "AZRC20"   "KT325"   
#> KotNaina     "QS3"           "14C040"   "IVI"     
#> KSK          "DN126"         "DN117"    "AUR0809" 
#> Khanewal     "BARDC1016"     "SD1013"   "SRN13121"
#> Sahiwal      "AZRC18"        "SRN13121" "SD1013"  
#> Bhakkar      "NIBGE GANDUM4" "AUR0809"  "SD1013"  
#> Bahawalnagar "DANI16"        "SD1013"   "QS3"     
Yield.ge_means$g_means
#> # A tibble: 60 × 2
#>    Gen       Mean
#>    <fct>    <dbl>
#>  1 013BT034 4248.
#>  2 122557   4062.
#>  3 122559   4259.
#>  4 12B.2511 4414.
#>  5 12FJ26   4057.
#>  6 14B.1030 3995.
#>  7 14C036   3943.
#>  8 14C040   3825.
#>  9 9496     4072.
#> 10 AUR0809  3792.
#> # ℹ 50 more rows
Yield.ge_means$e_means
#> # A tibble: 11 × 2
#>    Env           Mean
#>    <fct>        <dbl>
#>  1 FSD          4629.
#>  2 FSDR         4063.
#>  3 Okara        3634.
#>  4 Sargodha     4605.
#>  5 Gujranwala   4014.
#>  6 KotNaina     3760.
#>  7 KSK          3470.
#>  8 Khanewal     4719.
#>  9 Sahiwal      4478.
#> 10 Bhakkar      3715.
#> 11 Bahawalnagar 3581.