peay_average_path_value: Yang and Knoke's Average Path Value

Description Usage Arguments See Also Examples

View source: R/historical.R

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

1
peay_average_path_value(sociomatrix, path)

Arguments

sociomatrix

a nonnegative, real valued sociomatrix.

path

an integer vector of node indices from sociomatrix.

See Also

peay_path_value

Examples

1
2
3
4
5
## 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))

gretel documentation built on Aug. 22, 2019, 5:10 p.m.