PermutationDistribution {coin} | R Documentation |
Permutation Distribution of Conditional Independence Tests
Description
Density, distribution, quantile and support of permutation distributions
of conditional independence tests.
Usage
dperm(object, x, ...)
pperm(object, q, ...)
qperm(object, p, ...)
support(object, p, ...)
Arguments
object |
an object inheriting from class
IndependenceTest-class . |
x |
value of a standardized statistic. |
q |
value of a standardized statistic. |
p |
a probability. |
... |
further arguments (currently ignored). |
Methods
- dperm
- density function of a permutation distribution.
- pperm
- distribution function of a permutation distribution.
- qperm
- quantile function for a permutation distribution.
- support
- the support of a permutation distribution.
Examples
### artificial 2-sample problem
df <- data.frame(y = rnorm(20), x = gl(2, 10))
### Ansari-Bradley test
at <- ansari_test(y ~ x, data = df, distribution = "exact")
### density of the exact distribution of the Ansari-Bradley statistic
dens <- sapply(support(at), dperm, object = at)
### 95% quantile
qperm(at, 0.95)
### one-sided p-value
pperm(at, statistic(at))
[Package
coin version 0.2-10
Index]