| SpearmanTest {coin} | R Documentation |
Testing the independence of two numeric variables.
## S3 method for class 'formula'
spearman_test(formula, data, subset = NULL, weights = NULL, ...)
## S3 method for class 'IndependenceProblem'
spearman_test(object,
distribution = c("asymptotic", "approximate"), ...)
formula |
a formula of the form |
data |
an optional data frame containing the variables in the model formula. |
subset |
an optional vector specifying a subset of observations to be used. |
weights |
an optional formula of the form |
object |
an object of class |
distribution |
a character, the null distribution of the test statistic
can be approximated by its
|
... |
further arguments to be passed to or from methods. |
The null hypothesis of the independence of y and x
is tested.
An object inheriting from class IndependenceTest-class with
methods show, statistic, expectation,
covariance and pvalue. The null distribution
can be inspected by pperm, dperm,
qperm and support methods.
spearman_test(CONT ~ INTG, data = USJudgeRatings)