View source: R/cor_interpret.R
| cor_interpret | R Documentation |
Correlation Analysis with Plain-English Interpretation
cor_interpret(
x,
y,
method = "pearson",
conf.level = 0.95,
var1_name = "Variable 1",
var2_name = "Variable 2"
)
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" |
An object of class statease_cor containing correlation
results and interpretation. Use print() to display the
formatted report.
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.