<!DOCTYPE html> <!-- Generated by pkgdown: do not edit by hand --><html lang="en"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"><meta name="description" content=' Performs a stability analysis based on the criteria of Fox et al. (1990), using the statistical "TOP third" only. A stratified ranking of the genotypes at each environment is done. The proportion of locations at which the genotype occurred in the top third are expressed in the output.'><title>Fox's stability function — Fox • metan</title><!-- favicons --><link rel="icon" type="image/png" sizes="16x16" href="../favicon-16x16.png"><link rel="icon" type="image/png" sizes="32x32" href="../favicon-32x32.png"><link rel="apple-touch-icon" type="image/png" sizes="180x180" href="../apple-touch-icon.png"><link rel="apple-touch-icon" type="image/png" sizes="120x120" href="../apple-touch-icon-120x120.png"><link rel="apple-touch-icon" type="image/png" sizes="76x76" href="../apple-touch-icon-76x76.png"><link rel="apple-touch-icon" type="image/png" sizes="60x60" href="../apple-touch-icon-60x60.png"><script src="../deps/jquery-3.6.0/jquery-3.6.0.min.js"></script><meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"><link href="../deps/bootstrap-5.2.2/bootstrap.min.css" rel="stylesheet"><script src="../deps/bootstrap-5.2.2/bootstrap.bundle.min.js"></script><!-- Font Awesome icons --><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.1/css/all.min.css" integrity="sha256-mmgLkCYLUQbXn0B1SRqzHar6dCnv9oZFPEC1g1cwlkk=" crossorigin="anonymous"><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.1/css/v4-shims.min.css" integrity="sha256-wZjR52fzng1pJHwx4aV2AO3yyTOXrcDW7jBpJtTwVxw=" crossorigin="anonymous"><!-- bootstrap-toc --><script src="https://cdn.jsdelivr.net/gh/afeld/bootstrap-toc@v1.0.1/dist/bootstrap-toc.min.js" integrity="sha256-4veVQbu7//Lk5TSmc7YV48MxtMy98e26cf5MrgZYnwo=" crossorigin="anonymous"></script><!-- headroom.js --><script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.11.0/headroom.min.js" integrity="sha256-AsUX4SJE1+yuDu5+mAVzJbuYNPHj/WroHuZ8Ir/CkE0=" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.11.0/jQuery.headroom.min.js" integrity="sha256-ZX/yNShbjqsohH1k95liqY9Gd8uOiE1S4vZc+9KQ1K4=" crossorigin="anonymous"></script><!-- clipboard.js --><script src="https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/2.0.6/clipboard.min.js" integrity="sha256-inc5kl9MA1hkeYUt+EC3BhlIgyp/2jDIyBLS6k3UxPI=" crossorigin="anonymous"></script><!-- search --><script src="https://cdnjs.cloudflare.com/ajax/libs/fuse.js/6.4.6/fuse.js" integrity="sha512-zv6Ywkjyktsohkbp9bb45V6tEMoWhzFzXis+LrMehmJZZSys19Yxf1dopHx7WzIKxr5tK2dVcYmaCk2uqdjF4A==" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/autocomplete.js/0.38.0/autocomplete.jquery.min.js" integrity="sha512-GU9ayf+66Xx2TmpxqJpliWbT5PiGYxpaG8rfnBEk1LL8l1KGkRShhngwdXK1UgqhAzWpZHSiYPc09/NwDQIGyg==" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/mark.js/8.11.1/mark.min.js" integrity="sha512-5CYOlHXGh6QpOFA/TeTylKLWfB3ftPsde7AnmhuitiTX4K5SqCLBeKro6sPS8ilsz1Q4NRx3v8Ko2IBiszzdww==" crossorigin="anonymous"></script><!-- pkgdown --><script src="../pkgdown.js"></script><meta property="og:title" content="Fox's stability function — Fox"><meta property="og:description" content=' Performs a stability analysis based on the criteria of Fox et al. (1990), using the statistical "TOP third" only. A stratified ranking of the genotypes at each environment is done. The proportion of locations at which the genotype occurred in the top third are expressed in the output.'><meta property="og:image" content="https://tiagoolivoto.github.io/metan/logo.png"><!-- mathjax --><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js" integrity="sha256-nvJJv9wWKEm88qvoQl9ekL2J+k/RWIsaSScxxlsrv8k=" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/config/TeX-AMS-MML_HTMLorMML.js" integrity="sha256-84DKXVJXs0/F8OTMzX4UR909+jtl4G7SPypPavF+GfA=" crossorigin="anonymous"></script><!--[if lt IE 9]> <script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script> <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script> <![endif]--><!-- Global site tag (gtag.js) - Google Analytics --><script async src="https://www.googletagmanager.com/gtag/js?id=UA-140429633-1"></script><script> window.dataLayer = window.dataLayer || []; function gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config', 'UA-140429633-1'); </script></head><body> <a href="#main" class="visually-hidden-focusable">Skip to contents</a> <nav class="navbar fixed-top navbar-inverse navbar-expand-lg bg-light"><div class="container"> <a class="navbar-brand me-2" href="../index.html">metan</a> <small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">1.18.0</small> <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbar" aria-controls="navbar" aria-expanded="false" aria-label="Toggle navigation"> <span class="navbar-toggler-icon"></span> </button> <div id="navbar" class="collapse navbar-collapse ms-3"> <ul class="navbar-nav me-auto"><li class="nav-item"> <a class="nav-link" href="../index.html"> <span class="fa fa-home"></span> Home </a> </li> <li class="nav-item dropdown"> <a href="#" class="nav-link dropdown-toggle" data-bs-toggle="dropdown" role="button" aria-expanded="false" aria-haspopup="true" id="dropdown-examples">Examples</a> <div class="dropdown-menu" aria-labelledby="dropdown-examples"> <a class="dropdown-item" href="../articles/vignettes_helper.html">Helper functions</a> <a class="dropdown-item" href="../articles/vignettes_utilities.html">Utilities</a> <div class="dropdown-divider"></div> <a class="dropdown-item" href="../articles/vignettes_descriptive.html">Descriptive statistics</a> <a class="dropdown-item" href="../articles/vignettes_biometry.html">Biometry</a> <div class="dropdown-divider"></div> <a class="dropdown-item" href="../articles/vignettes_cross-validation.html">Cross-validation</a> <a class="dropdown-item" href="../articles/vignettes_ammi.html">AMMI</a> <a class="dropdown-item" href="../articles/vignettes_blup.html">BLUP</a> <a class="dropdown-item" href="../articles/vignettes_gge.html">GGE</a> <a class="dropdown-item" href="../articles/vignettes_stability.html">Stability</a> <div class="dropdown-divider"></div> <a class="dropdown-item" href="../articles/vignettes_indexes.html">Multivariate indexes</a> </div> </li> <li class="active nav-item"> <a class="nav-link" href="../reference/index.html">Functions</a> </li> <li class="nav-item dropdown"> <a href="#" class="nav-link dropdown-toggle" data-bs-toggle="dropdown" role="button" aria-expanded="false" aria-haspopup="true" id="dropdown-news">News</a> <div class="dropdown-menu" aria-labelledby="dropdown-news"> <a class="dropdown-item" href="../news/index.html">Package news</a> <a class="external-link dropdown-item" href="https://olivoto.netlify.app/">Blog posts</a> </div> </li> <li class="nav-item dropdown"> <a href="#" class="nav-link dropdown-toggle" data-bs-toggle="dropdown" role="button" aria-expanded="false" aria-haspopup="true" id="dropdown-more">More</a> <div class="dropdown-menu" aria-labelledby="dropdown-more"> <a class="dropdown-item" href="../CODE_OF_CONDUCT.html">Code of Conduct</a> <a class="dropdown-item" href="../CONTRIBUTING.html">Contributing</a> <a class="dropdown-item" href="../ISSUE_TEMPLATE.html">Issues</a> <a class="dropdown-item" href="../SUPPORT.html">Support</a> <a class="dropdown-item" href="../LICENSE.html">Licence</a> </div> </li> </ul><form class="form-inline my-2 my-lg-0" role="search"> <input type="search" class="form-control me-sm-2" aria-label="Toggle navigation" name="search-input" data-search-index="../search.json" id="search-input" placeholder="Search for" autocomplete="off"></form> <ul class="navbar-nav"><li class="nav-item"> <a class="external-link nav-link" href="https://www.researchgate.net/profile/Tiago_Olivoto2"> <span class="fab fa fab fa-researchgate fa-2x"></span> </a> </li> <li class="nav-item"> <a class="external-link nav-link" href="https://github.com/TiagoOlivoto"> <span class="fa fa-github fa-2x"></span> </a> </li> <li class="nav-item"> <a class="external-link nav-link" href="https://twitter.com/tolivoto"> <span class="fab fa fab fa-twitter fa-2x"></span> </a> </li> <li class="nav-item"> <a class="external-link nav-link" href="https://www.mendeley.com/profiles/tiago-olivoto/"> <span class="fab fa fab fa-mendeley fa-2x"></span> </a> </li> </ul></div> </div> </nav><div class="container template-reference-topic"> <div class="row"> <main id="main" class="col-md-9"><div class="page-header"> <img src="../logo.png" class="logo" alt=""><h1>Fox's stability function</h1> <small class="dont-index">Source: <a href="https://github.com/TiagoOlivoto/metan/blob/HEAD/R/Fox.R" class="external-link"><code>R/Fox.R</code></a></small> <div class="d-none name"><code>Fox.Rd</code></div> </div> <div class="ref-description section level2"> <p><a href="https://lifecycle.r-lib.org/articles/stages.html#stable" class="external-link"><img src="figures/lifecycle-stable.svg" alt="[Stable]"></a></p> <p>Performs a stability analysis based on the criteria of Fox et al. (1990), using the statistical "TOP third" only. A stratified ranking of the genotypes at each environment is done. The proportion of locations at which the genotype occurred in the top third are expressed in the output.</p> </div> <div class="section level2"> <h2 id="ref-usage">Usage<a class="anchor" aria-label="anchor" href="#ref-usage"></a></h2> <div class="sourceCode"><pre class="sourceCode r"><code><span><span class="fu">Fox</span><span class="op">(</span><span class="va">.data</span>, <span class="va">env</span>, <span class="va">gen</span>, <span class="va">resp</span>, verbose <span class="op">=</span> <span class="cn">TRUE</span><span class="op">)</span></span></code></pre></div> </div> <div class="section level2"> <h2 id="arguments">Arguments<a class="anchor" aria-label="anchor" href="#arguments"></a></h2> <dl><dt>.data</dt> <dd><p>The dataset containing the columns related to Environments, Genotypes, replication/block and response variable(s).</p></dd> <dt>env</dt> <dd><p>The name of the column that contains the levels of the environments.</p></dd> <dt>gen</dt> <dd><p>The name of the column that contains the levels of the genotypes.</p></dd> <dt>resp</dt> <dd><p>The response variable(s). To analyze multiple variables in a single procedure use, for example, <code>resp = c(var1, var2, var3)</code>.</p></dd> <dt>verbose</dt> <dd><p>Logical argument. If <code>verbose = FALSE</code> the code will run silently.</p></dd> </dl></div> <div class="section level2"> <h2 id="value">Value<a class="anchor" aria-label="anchor" href="#value"></a></h2> <p>An object of class <code>Fox</code>, which is a list containing the results for each variable used in the argument <code>resp</code>. For each variable, a tibble with the following columns is returned.</p><ul><li><p><strong>GEN</strong> the genotype's code.</p></li> <li><p><strong>mean</strong> the mean for the response variable.</p></li> <li><p><strong>TOP</strong> The proportion of locations at which the</p></li> </ul></div> <div class="section level2"> <h2 id="references">References<a class="anchor" aria-label="anchor" href="#references"></a></h2> <p>Fox, P.N., B. Skovmand, B.K. Thompson, H.J. Braun, and R. Cormier. 1990. Yield and adaptation of hexaploid spring triticale. Euphytica 47:57-64. <a href="https://doi.org/10.1007/BF00040364" class="external-link">doi:10.1007/BF00040364</a> .</p> </div> <div class="section level2"> <h2 id="author">Author<a class="anchor" aria-label="anchor" href="#author"></a></h2> <p>Tiago Olivoto <a href="mailto:tiagoolivoto@gmail.com">tiagoolivoto@gmail.com</a></p> </div> <div class="section level2"> <h2 id="ref-examples">Examples<a class="anchor" aria-label="anchor" href="#ref-examples"></a></h2> <div class="sourceCode"><pre class="sourceCode r"><code><span class="r-in"><span><span class="co"># \donttest{</span></span></span> <span class="r-in"><span><span class="kw"><a href="https://rdrr.io/r/base/library.html" class="external-link">library</a></span><span class="op">(</span><span class="va"><a href="https://github.com/TiagoOlivoto/metan" class="external-link">metan</a></span><span class="op">)</span></span></span> <span class="r-in"><span><span class="va">out</span> <span class="op"><-</span> <span class="fu">Fox</span><span class="op">(</span><span class="va">data_ge2</span>, <span class="va">ENV</span>, <span class="va">GEN</span>, <span class="va">PH</span><span class="op">)</span></span></span> <span class="r-out co"><span class="r-pr">#></span> Evaluating trait PH |============================================| 100% 00:00:00 </span> <span class="r-in"><span><span class="fu"><a href="https://rdrr.io/r/base/print.html" class="external-link">print</a></span><span class="op">(</span><span class="va">out</span><span class="op">)</span></span></span> <span class="r-out co"><span class="r-pr">#></span> Variable PH </span> <span class="r-out co"><span class="r-pr">#></span> ---------------------------------------------------------------------------</span> <span class="r-out co"><span class="r-pr">#></span> Fox TOP third criteria</span> <span class="r-out co"><span class="r-pr">#></span> ---------------------------------------------------------------------------</span> <span class="r-out co"><span class="r-pr">#></span> <span style="color: #949494;"># A tibble: 13 × 3</span></span> <span class="r-out co"><span class="r-pr">#></span> GEN Y TOP</span> <span class="r-out co"><span class="r-pr">#></span> <span style="color: #949494; font-style: italic;"><fct></span> <span style="color: #949494; font-style: italic;"><dbl></span> <span style="color: #949494; font-style: italic;"><int></span></span> <span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 1</span> H1 2.62 2</span> <span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 2</span> H10 2.31 0</span> <span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 3</span> H11 2.39 0</span> <span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 4</span> H12 2.44 1</span> <span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 5</span> H13 2.54 3</span> <span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 6</span> H2 2.60 1</span> <span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 7</span> H3 2.59 2</span> <span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 8</span> H4 2.58 1</span> <span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 9</span> H5 2.57 1</span> <span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;">10</span> H6 2.56 0</span> <span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;">11</span> H7 2.40 0</span> <span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;">12</span> H8 2.33 0</span> <span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;">13</span> H9 2.36 1</span> <span class="r-out co"><span class="r-pr">#></span> </span> <span class="r-out co"><span class="r-pr">#></span> </span> <span class="r-out co"><span class="r-pr">#></span> </span> <span class="r-in"><span><span class="co"># }</span></span></span> <span class="r-in"><span></span></span> </code></pre></div> </div> </main><aside class="col-md-3"><nav id="toc"><h2>On this page</h2> </nav></aside></div> <footer><div class="pkgdown-footer-left"> <p></p><p>Developed by <a href="https://olivoto.netlify.app/" class="external-link">Tiago Olivoto</a>.</p> </div> <div class="pkgdown-footer-right"> <p></p><p>Site built with <a href="https://pkgdown.r-lib.org/" class="external-link">pkgdown</a> 2.0.7.</p> </div> </footer></div> </body></html>