mirror of
https://github.com/msberends/AMR.git
synced 2025-07-11 11:41:54 +02:00
(v1.8.1.9011) update prevalence of some genera
This commit is contained in:
@ -89,8 +89,10 @@ The \emph{G}-test uses the log of the ratio of two likelihoods as the test stati
|
||||
|
||||
\eqn{G = 2 * sum(x * log(x / E))}
|
||||
|
||||
where \code{E} are the expected values. Since this is chi-square distributed, the p value can be calculated in \R with:\preformatted{p <- stats::pchisq(G, df, lower.tail = FALSE)
|
||||
}
|
||||
where \code{E} are the expected values. Since this is chi-square distributed, the p value can be calculated in \R with:
|
||||
|
||||
\if{html}{\out{<div class="sourceCode">}}\preformatted{p <- stats::pchisq(G, df, lower.tail = FALSE)
|
||||
}\if{html}{\out{</div>}}
|
||||
|
||||
where \code{df} are the degrees of freedom.
|
||||
|
||||
|
Reference in New Issue
Block a user