[Vegan-commits] r1230 - pkg/vegan/man
noreply at r-forge.r-project.org
noreply at r-forge.r-project.org
Wed Jun 16 00:07:30 CEST 2010
Author: gsimpson
Date: 2010-06-16 00:07:29 +0200 (Wed, 16 Jun 2010)
New Revision: 1230
Modified:
pkg/vegan/man/permutations.Rd
Log:
Updates and minor edits to permutation test description
Modified: pkg/vegan/man/permutations.Rd
===================================================================
--- pkg/vegan/man/permutations.Rd 2010-06-15 09:16:36 UTC (rev 1229)
+++ pkg/vegan/man/permutations.Rd 2010-06-15 22:07:29 UTC (rev 1230)
@@ -13,7 +13,7 @@
}
We use \emph{DATA} to mean either the observed data themselves or some
function of the data, for example the residuals of an ordination model
- when covariables are present.
+ in the presence of covariables.
The second type of permutation test above is available if the function
providing the test accepts an argument \code{strata} or passes
@@ -36,12 +36,12 @@
\item{An appropriate test statistic is chosen. Which statistic is
chosen should be described on the help pages for individual
functions.}
- \item{The value of the test statistic is enumerated for the observed
+ \item{The value of the test statistic is evaluate for the observed
data and analysis/model and recorded. Denote this value
\eqn{x_0}{x[0]}.}
\item{The \emph{DATA} are randomly permuted according to one of the
above two schemes, and the value of the test statistic for this
- permutation is enumerated and recorded.}
+ permutation is evaluated and recorded.}
\item{Step 3 is repeated a total of \eqn{n} times, where \eqn{n} is
the number of permutations requested. Denote these values as
\eqn{x_i}{x[i]}, where \eqn{i = 1, ..., n}{{i = 1, \ldots, n}.}}
@@ -50,14 +50,16 @@
for the observed data. These \emph{n + 1} values represent the
\emph{Null} or \emph{randomisation} distribution of the test
statistic. The observed value for the test statistic is included
- in the Null distribution, because under the Null hypothesis being
- tested, the observed value is just a common value of the test
- statistic, no different from the values obtained via permutation
- of \emph{DATA}.}
+ in the Null distribution because under the Null hypothesis being
+ tested, the observed value is just a typical value of the test
+ statistic, inherently no different from the values obtained via
+ permutation of \emph{DATA}.}
\item{The number of times that a value of the test statistic in the
Null distribution is equal to or greater than the value of the
- test statistic for the observed data is recorded. Denote this
- count as \eqn{N}.}
+ test statistic for the observed data is recorded. Note the point
+ mentioned in step 5 above; the Null distribution includes the
+ \strong{observed} value of the test statistic. Denote this count
+ as \eqn{N}.}
\item{The permutation p-value is computed as
\deqn{p = \frac{N}{n + 1}}{N / (n + 1)}}
}
@@ -68,16 +70,29 @@
achievable because \eqn{n + 1} becomes 200 or 1000, for example.
The minimum achievable p-value is
- \deqn{p = \frac{1}{n +1}}{1 / (n + 1)}
- However, one cannot simply increase the number of permutations
+ \deqn{p_{\mathrm{min}} = \frac{1}{n +1}}{p[min] = 1 / (n + 1)}
+
+ A more common definition, in ecological circles, for \eqn{N} would be
+ the number of \eqn{x_i}{x[i]} greater than or equal to
+ \eqn{x_0}{x[0]}. The permutation p-value would then be defined as
+ \deqn{p = \frac{N + 1}{n + 1}}{(N + 1) / (n + 1)}
+ The + 1 in the numerator of the above equation represents the observed
+ statistic \eqn{x_0}{x[0]}. The minimum p-value would then be defined as
+ \deqn{p_{\mathrm{min}} = \frac{0 + 1}{n +1}}{p[min] = 0 + 1 / (n + 1)}
+ However this definition discriminates between the observed
+ statistic and the other \eqn{x_i}{x[i]}. Under the Null hypothesis
+ there is no such distinction, hence we prefer the definintion used in
+ the numbered steps above.
+
+ One cannot simply increase the number of permutations
(\eqn{n}) to achieve a potentially lower p-value unless the number of
observations available permits such a number of permutations. This is
- unlikely to be a problem for all but the smallest data set sizes when
+ unlikely to be a problem for all but the smallest data sets when
free permutation (randomisation) is valid, but in designs where
\code{strata} is specified and there are a low number of observations
within each level of \code{strata}, there may not be as many actual
permutations of the data as you might want.
-
+
It is currently the responsibility of the user to determine the total
number of possible permutations for their \emph{DATA}. No checks are
made within Vegan functions to ensure a sensible number of
More information about the Vegan-commits
mailing list