compute_modularity_matrix {CommKern}R Documentation

Compute modularity matrix

Description

Description of the compute modularity matrix function.

Usage

compute_modularity_matrix(net)

Arguments

net

a spinglass_net object (see matrix_to_df for more details)

Details

Calculates the modularity matrix, which is the difference between the observed adjacency matrix and the expected adjacency matrix (from a null model). This is only computed for the main component of network information, not accounting for the guidance. For neuroimaging application, this function would be computing the modularity matrix for the functional connectivity aspect of the network object. The function takes in a network object and returns the modularity matrix.

Value

mod_matrix

See Also

matrix_to_df


[Package CommKern version 1.0.1 Index]