propcal {SEset}R Documentation

Edge frequency in the SE-set

Description

A function used to analyse the SEset results. Calculates the proportion of path models in a given SEset in which a particular edge is present

Usage

propcal(SEmatrix, names = NULL, rm_duplicate = TRUE, directed = TRUE)

Arguments

SEmatrix

An n \times p matrix containing the SEset, where each row represents a p \times p weights matrix stacked column-wise

names

optional character vector containing dimension names

rm_duplicate

Should duplicate weights matrices be removed from the SEset. Defaults to TRUE.

directed

If FALSE, the directionality of edges is ignored, and the output reflects in what proportion of the SEset an edge of any direction is present. If TRUE, the proportion is calculated seperately for edges of either direction. Defaults to TRUE

Value

a p \times p matrix showing in what proportion particular edges are present. If directed=TRUE, elements ij denote the proportion of weights matrices containing a path from X_j to X_i. If directed=F, the output will be a symmetric matrix, with element ij denoting in what proprtion an edge of either direction connects X_i to X_j.

References

Ryan O, Bringmann LF, Schuurman NK (upcoming). “The challenge of generating causal hypotheses using network models.” in preperation.

See Also

network_to_SEset


[Package SEset version 1.0.1 Index]