cor_interpret: Correlation Analysis with Plain-English Interpretation

View source: R/cor_interpret.R

cor_interpretR Documentation

Correlation Analysis with Plain-English Interpretation

Description

Correlation Analysis with Plain-English Interpretation

Usage

cor_interpret(
  x,
  y,
  method = "pearson",
  conf.level = 0.95,
  var1_name = "Variable 1",
  var2_name = "Variable 2"
)

Arguments

x

A numeric vector

y

A numeric vector

method

Correlation method: "pearson", "spearman", or "kendall". Default "pearson".

conf.level

Confidence level. Default 0.95.

var1_name

Optional name for first variable. Default "Variable 1"

var2_name

Optional name for second variable. Default "Variable 2"

Value

An object of class statease_cor containing correlation results and interpretation. Use print() to display the formatted report.

Examples

x <- c(23, 45, 12, 67, 34, 89, 56, 43, 78, 90)
y <- c(19, 42, 15, 70, 30, 85, 52, 48, 80, 88)
result <- cor_interpret(x, y)
print(result)

statease documentation built on June 7, 2026, 5:06 p.m.