pvalue-methods {coin}R Documentation

Extract P-Values

Description

Extracts the p-value from objects representing null distributions of independence tests.

Usage

pvalue(object, ...)

Arguments

object an object inheriting from class IndependenceTest-class.
... further arguments, for example adjusted = TRUE for computing adjusted p-values.

Methods

pvalue
extracts the p-value from the specified object.

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")

at

pvalue(at)


[Package coin version 0.2-12 Index]