correlation_edgelist: Correlation edgelist

Description Usage Arguments Examples

Description

Calculate the edgelist of a correlation network

Usage

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)

Arguments

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.

Examples

1
2

blasern/cornet documentation built on May 19, 2019, 9:37 p.m.