mirror of
https://github.com/msberends/AMR.git
synced 2025-07-08 23:21:56 +02:00
website update
This commit is contained in:
@ -270,8 +270,7 @@
|
||||
|
||||
|
||||
<h2 class="hasAnchor" id="examples"><a class="anchor" href="#examples"></a>Examples</h2>
|
||||
<pre class="examples"><span class='co'># NOT RUN {</span>
|
||||
<span class='co'># = EXAMPLE 1 =</span>
|
||||
<pre class="examples"><div class='input'><span class='co'># = EXAMPLE 1 =</span>
|
||||
<span class='co'># Shivrain et al. (2006) crossed clearfield rice (which are resistant</span>
|
||||
<span class='co'># to the herbicide imazethapyr) with red rice (which are susceptible to</span>
|
||||
<span class='co'># imazethapyr). They then crossed the hybrid offspring and examined the</span>
|
||||
@ -297,13 +296,17 @@
|
||||
<span class='co'># observed 1752 right-billed and 1895 left-billed crossbills.</span>
|
||||
|
||||
<span class='no'>x</span> <span class='kw'><-</span> <span class='fu'><a href='https://www.rdocumentation.org/packages/base/topics/c'>c</a></span>(<span class='fl'>1752</span>, <span class='fl'>1895</span>)
|
||||
<span class='fu'>g.test</span>(<span class='no'>x</span>)
|
||||
<span class='co'># p = 0.01787343</span>
|
||||
<span class='fu'>g.test</span>(<span class='no'>x</span>)</div><div class='output co'>#>
|
||||
#> G-test of goodness-of-fit (likelihood ratio test)
|
||||
#>
|
||||
#> data: x
|
||||
#> X-squared = 5.6085, df = 1, p-value = 0.01787
|
||||
#> </div><div class='input'># p = 0.01787343
|
||||
|
||||
<span class='co'># There is a significant difference from a 1:1 ratio.</span>
|
||||
<span class='co'># Meaning: there are significantly more left-billed birds.</span>
|
||||
# There is a significant difference from a 1:1 ratio.
|
||||
# Meaning: there are significantly more left-billed birds.
|
||||
|
||||
<span class='co'># }</span></pre>
|
||||
</div></pre>
|
||||
</div>
|
||||
<div class="col-md-3 hidden-xs hidden-sm" id="sidebar">
|
||||
<h2>Contents</h2>
|
||||
|
Reference in New Issue
Block a user