Description Usage Arguments Details Value References Examples
View source: R/multivariance-functions.R
Use a resampling method to generate samples of the test statistic under the hypothesis of independence. Based on these the p.value of a given value of a test statistic is computed.
1 | resample.pvalue(value, ...)
|
value |
numeric, the value of (total-/m-)multivariance for which the p-value shall be computed |
... |
passed to |
This function is useful if a p-value of a test statistic shall be computed based on the resampling values of the test statistic of a different sample. For the p-value based on the same sample resample.multivariance(...)$p.value
is sufficient.
It returns 1 minus the value of the empirical distribution function of the resampling samples evaluated at the given value.
For the theoretic background see the reference [3] given on the main help page of this package: multivariance-package.
1 2 3 | x = coins(100)
resample.pvalue(multivariance(x),x=x,times = 300)
resample.pvalue(multivariances.all(x),x=x,times = 300,type = "all")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.