peay_path_value {gretel} | R Documentation |
Peay's Path Value Measure
Description
Calculates path value as defined in Peay (1980). That is, returns the value of the weakest connection in the path, if all edges exist. Otherwise, returns 0.
Usage
peay_path_value(sociomatrix, path)
Arguments
sociomatrix |
a nonnegative, real valued sociomatrix. |
path |
an integer vector of node indices from |
See Also
Examples
## Calculate Peay's Path Value along a path in a sociomatrix
peay_path_value(YangKnoke01, path = c(1,2,5))
## This path doesn't exist
peay_path_value(YangKnoke01, path = c(1,2,4,5))
[Package gretel version 0.0.1 Index]