Description Usage Arguments Details Value Author(s) Examples

View source: R/WAASratio.AMMI.R

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

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

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

`resp` |
The response variable, for example |

`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 |

This function is very similar to the `WAASBYratio`

. The main difference is that here, the WAASBY values are computed considering a traditional AMMI model.

`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. |

Tiago Olivoto [email protected]

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)
``` |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.