peay_average_path_value {gretel} | R Documentation |
Yang and Knoke's Average Path Value
Description
Calculates 'APV' (Average Path Value) as defined in Yang, Knoke (2001)
Called peay_average_path_value
in homage to E.R. Peay, who defined
path length in 1980.
Usage
peay_average_path_value(sociomatrix, path)
Arguments
sociomatrix |
a nonnegative, real valued sociomatrix. |
path |
an integer vector of node indices from |
See Also
Examples
## Calculate 'APV' of a path in a sociomatrix
peay_average_path_value(YangKnoke01, path = c(1,2,5))
## This path doesn't exist
peay_average_path_value(YangKnoke01, path = c(1,2,4,5))
[Package gretel version 0.0.1 Index]