WAASratio.AMMI: Weighted Average of Absolute Scores for AMMI analysis in...

Description Usage Arguments Details Value Author(s) Examples

View source: R/WAASratio.AMMI.R

Description

Compute the Weighted Average of Absolute Scores for AMMI analysis in different combinations of weights for stability and productivity.

Usage

1
2
WAASratio.AMMI(.data, resp, gen, env, rep, p.valuePC = 0.05,
               increment = 5, saveWAASY = 50, progbar = TRUE)

Arguments

.data

The dataset containing the columns related to Environments, Genotypes, replication/block and response variable(s).

resp

The response variable, for example resp = RG.

gen

The name of the column that contains the levels of the genotypes.

env

The name of the column that contains the levels of the environments.

rep

The name of the column that contains the levels of the replications/blocks.

p.valuePC

The p-value for considering the PC significant. Default is 0.05. The number of significant Principal Components to be used for calculating the WAASB will be chosen based on this probability.

increment

The range of the increment for WAAS/GY ratio. Default is 5. The function compute the WAASY values starting with a weight o 100 for stability and 0 for response variable. With the default, the first scenario will be a WAAS/GY ratio = 100/0. In the next scenario, the WAASY values are computed based on a WAAS/GY ratio = 95/5.

saveWAASY

Automatically save the WAASY values when the wheight for WAAS (stability) in the WAAS/GY ratio is "saveWAASY". Default is 100. The value of "saveWAASY" must be multiple of "Increment". If this assumption is not valid, an error will be occour.

progbar

A logical argument to define if a progress bar is shown. Default is TRUE.

Details

This function is very similar to the WAASBYratio. The main difference is that here, the WAASBY values are computed considering a traditional AMMI model.

Value

anova

Joint analysis of variance for the main effects and Principal Component analysis of the interaction effect.

PC

Principal Component Analysis.

MeansGxE

The means of genotypes in the environments, with observed, predicted and residual values.

WAAS

A data frame with the response variable, the scores of all Principal Components, the estimates of Weighted Average of Absolute Scores, and WAASY (the index that consider the weights for stability and productivity in the genotype ranking.

WAASY

The values of the WAASY estimated when the wheight for the stability in the loop match with argument "saveWAASY".

WAASY.values

All the values of WAASY estimated in the different scenarios of WAAS/GY weighting ratio.

Author(s)

Tiago Olivoto [email protected]

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
## Not run: 
# Default, with increment of 5 and saving the WAASY values when weight is 50
wratio = WAASratio.AMMI(data_ge,
                        resp = GY,
                        gen = GEN,
                        env = ENV,
                        rep = REP)

# Incrementing 2-by-2
wratio2 = WAASratio.AMMI(data_ge,
                         resp = GY,
                         gen = GEN,
                         env = ENV,
                         rep = REP,
                         increment = 50)

## End(Not run)

TiagoOlivoto/WAASB documentation built on April 1, 2019, 10:25 a.m.