cor_test {psycModel} | R Documentation |
Correlation table
Description
This function uses the correlation::correlation()
to generate the correlation table.
Usage
cor_test(
data,
cols,
...,
digits = 3,
method = "pearson",
p_adjust = "none",
streamline = FALSE,
quite = FALSE,
return_result = FALSE
)
Arguments
data |
data frame |
cols |
correlation items. Support |
... |
additional arguments passed to correlation::correlation(). See ?correlation::correlation. Note that the return data.frame from correlation::correlation() must contains |
digits |
number of digits to round to |
method |
Default is "pearson". Options are "kendall", "spearman","biserial", "polychoric", "tetrachoric", "biweight", "distance", "percentage", "blomqvist", "hoeffding", "gamma", "gaussian","shepherd", or "auto". See ?correlation::correlation for detail |
p_adjust |
Default is "holm". Options are "hochberg", "hommel", "bonferroni", "BH", "BY", "fdr", "somers" or "none". See ?stats::p.adjust for more detail |
streamline |
print streamlined output. |
quite |
suppress printing output |
return_result |
If it is set to |
Value
a data.frame
of the correlation table
Examples
cor_test(iris, where(is.numeric))