Skip to contents

test centralities

Usage

test_centralities(g, centrality, preds)

Arguments

g

An igraph object.

centrality

Name of the centrality measure to plot. Either a vertex attribute of g (e.g. ".degree") or one of the computed measures: "closeness", "betweenness" or "eigen_centrality".

preds

predss to test

Value

table indicating any significant predictors

Examples

test_centralities(example_network, c(".degree", ".closeness"), "genetic_sex")
#> # A tibble: 2 × 3
#>   term        p.value centrality
#>   <chr>         <dbl> <chr>     
#> 1 genetic_sex   0.933 .degree   
#> 2 genetic_sex   0.717 .closeness