Description Usage Arguments Value Examples
Get correlation coeficient between two numeric variable
1 2 3 4 5 6 7 8 9 | getCorrelationCoeficient(
data,
var1,
var2,
method = "pearson",
exact = NULL,
conf.level = 0.95,
round = 3
)
|
data |
a data.frame, containing the data to use to compute the correlation coeficient |
var1 |
a character vector of length one, containing the variable name of numeric variable in data |
var2 |
a character vector of length one, containing the variable name of numeric variable in data |
method |
a character string indicating which correlation coefficient is to be used for the test. One of "pearson", "kendall", or "spearman". |
exact |
a logical indicating whether an exact p-value should be computed. Used for Kendall's tau and Spearman's rho. |
conf.level |
confidence level for the returned confidence interval. |
round |
a numeric vector of length one, containing the number of digit for rounding |
a data.frame
1 2 3 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.