peay_path_value {gretel} | R Documentation |
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.
peay_path_value(sociomatrix, path)
sociomatrix |
a nonnegative, real valued sociomatrix. |
path |
an integer vector of node indices from |
## 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))