Learn R Programming

gretel (version 0.0.1)

peay_average_path_value: 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 sociomatrix.

See Also

peay_path_value

Examples

Run this code
# NOT RUN {
## 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))

# }

Run the code above in your browser using DataLab