Description Usage Arguments Examples
Calculate the edgelist of a correlation network
1 2 3 4 5 | correlation_edgelist(data, correlation_method = c("pearson", "kendall",
"spearman"), use = c("everything", "all.obs", "complete.obs",
"na.or.complete", "pairwise.complete.obs"), threshold = 0.05,
threshold_method = c("pvalue", "absolute"),
adjust = stats::p.adjust.methods)
|
data |
input data, a numeric matrix or data frame. |
correlation_method |
a character string indicating which correlatin coefficient to compute. One of '"pearson"' (default), '"kendall"', or '"spearman"'. |
use |
a character string indicating how to deal with missing values. One of '"everything"', '"all.obs"', '"complete.obs"', '"na.or.complete"', or '"pairwise.complete.obs"'. |
threshold |
a numeric threshold |
threshold_method |
a character string indicating how correlations should be thresholded. One of '"pvalue"' (default), or '"absolute"'. |
adjust |
a character string indicating how p-values should be adjusted for multiple comparisons. See p.adjust.methods for all methods. |
1 2 | data('mtcars')
correlation_edgelist(mtcars)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.