cor.spearman.rank.simple: Spearman's Rank Correlation Coefficient

cor.spearman.rankR Documentation

Spearman's Rank Correlation Coefficient

Description

Calculate test of significance for Spearman's Rank Correlation Coefficient.

Usage

cor.spearman.rank(
  x1,
  x2,
  conf.level = 0.95,
  alternative = c("two.sided", "less", "greater")
)

cor.spearman.rank.simple(
  r_sp,
  sample.size,
  conf.level = 0.95,
  alternative = c("two.sided", "less", "greater")
)

Arguments

x1

Vector - Variable 1 values

x2

Vector - Variable 2 values

conf.level

The confidence level for this test, between 0 and 1.

alternative

The alternative hypothesis to use for the test computation.

r_sp

Scalar - Sample rank correlation coefficient.

sample.size

Scalar - Sample size to use for the calculation.

Value

Hypothesis test result showing results of test.


burrm/lolcat documentation built on Sept. 15, 2023, 11:35 a.m.