## 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"), ...)
y ~ x | block
where y
and x
are numeric variables and block
is an
optional factor for stratification.~ w
defining
integer valued weights for the observations.IndependenceProblem
.asymptotic
distribution (asymptotic
)
or via Monte-Carlo resampling (approximate
).
Alternatively, the functions
IndependenceTest-class
with
methods show
, statistic
, expectation
,
covariance
and pvalue
. The null distribution
can be inspected by pperm
, dperm
,
qperm
and support
methods.y
and x
is tested.spearman_test(CONT ~ INTG, data = USJudgeRatings)
Run the code above in your browser using DataLab