pvalue | R Documentation |
Calculate permutation p-value from null-hypothesis distribution
pvalue(cms, nhd)
cms |
Cluster mass statistic for the original data. |
nhd |
A vector comprising the null-hypothesis distribution, excluding the original statistic. |
Calculates the p-value as the number of values in the vector c(cms, nhd)
that are greater than or equal to the original value, divided by the length of nhd
plus one (because the original statistic is included in the NHD).
A scalar representing the p-value.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.