netdist: Network distance

Description Usage Arguments Details Value Author(s) Examples

View source: R/rda.R

Description

Minimal directed pathlength between nodes in a network.

Usage

1
netdist(Y, countdown = FALSE)

Arguments

Y

(matrix) The sociomatrix. Any positive values of Y are taken to indicate a link. Negative values are not taken to be links.

countdown

(logical) If true, the progress of the algorithm is printed out.

Details

The directed distance between nodes of a binary network are computed, making use of the fact that the sociomatrix raised to a given power indicates the existence of paths of a given length between nodes.

Value

A matrix of the same dimension as Y, giving the distance (minimal path length) between nodes.

Author(s)

Peter Hoff

Examples

1
2
3
4

MikeKozelMSU/mcmcFunc documentation built on May 22, 2019, 5:31 p.m.