View source: R/functions_exploration.R
correlate_variables | R Documentation |
Correlates two variables in the provided data sets by Pearson, Spearman or Kendall method.
correlate_variables(
...,
variables,
what = c("correlation", "covariance"),
type = c("pearson", "spearman", "kendall", "kappa"),
ci = TRUE,
boot_method = "percentile",
pub_styled = FALSE,
signif_digits = 2,
adj_method = "none",
simplify_p = TRUE
)
... |
data sets. |
variables |
a vector with variable names. If more than two provided, only the first two are analyzed. |
what |
the requested analysis: 'correlation' or 'covariance'. Defaults to 'correlation'. |
type |
the type of correlation/covariance: Pearson, Spearman, Kendall or Kohen's kappa. Defaults to Pearson.
See: |
ci |
logical, should confidence intervals for the test effect size be returned? |
boot_method |
indicates how the bootstrap confidence intervals are calculated. Can be any of 'percentile', 'bca', or 'normality', defaults to 'percentile'. |
pub_styled |
logical, should the output be publication-ready formatted? |
signif_digits |
significant digits used for rounding in the publication-style output. |
adj_method |
the method for adjusting p values for multiple testing, as defined for |
simplify_p |
logical, should p_values < 0.001 be presented in a p < 0.001 form? |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.