Learn R Programming

sna (version 0.41)

sdmat: Estimate the Structural Distance Matrix for a Graph Set

Description

Estimates the structural distances among all elements of dat using the method specified in method.

Usage

sdmat(dat, normalize=FALSE, diag=FALSE, mode="digraph", 
    output="matrix", method="mc", exchange.list=rep(0, 
    dim(dat)[2]), ...)

Arguments

dat
Data array to be analyzed. By assumption, the first dimension of the array indexes the graph, with the next two indexing the actors. This data need not be dichotomous, and missing values are allowed.
normalize
Divide by the number of available dyads?
diag
Boolean indicating whether or not the diagonal should be treated as valid data. Set this true if and only if the data can contain loops. diag is FALSE by default.
mode
String indicating the type of graph being evaluated. ?digraph"} indicates that edges should be interpreted as directed; code{"graph"} indicates that edges are undirected. code{mode} is set to code{"digraph"} by default. } item{output}{ code{"mat