Learn R Programming

coin (version 1.0-7)

SpearmanTest: Spearman's Test on Independence

Description

Testing the independence of two numeric variables.

Usage

## S3 method for class 'formula':
spearman_test(formula, data, subset = NULL, weights = NULL, \dots)
## S3 method for class 'IndependenceProblem':
spearman_test(object,
    distribution = c("asymptotic", "approximate"), ...)

Arguments

Value

Details

The null hypothesis of the independence of y and x is tested.

Examples

Run this code
spearman_test(CONT ~ INTG, data = USJudgeRatings)

Run the code above in your browser using DataLab