Learn R Programming

sna (version 2.8)

eval.edgeperturbation: Compute the Effects of Single-Edge Perturbations on Structural Indices

Description

Evaluates a given function on an input graph with and without a specified edge, returning the difference between the results in each case.

Usage

eval.edgeperturbation(dat, i, j, FUN, ...)

Value

The difference in the values of FUN as computed on the perturbed graphs.

Arguments

dat

A single adjacency matrix

i

The row(s) of the edge(s) to be perturbed

j

The column(s) of the edge(s) to be perturbed

FUN

The function to be computed

...

Additional arguments to FUN

Author

Carter T. Butts buttsc@uci.edu

Details

Although primarily a back-end utility for pstar, eval.edgeperturbation may be useful in any circumstance in which one wishes to assess the stability of a given structural index with respect to single edge perturbations. The function to be evaluated is calculated first on the input graph with all marked edges set to present, and then on the same graph with said edges absent. (Obviously, this is sensible only for dichotomous data.) The difference is then returned.

In pstar, calls to eval.edgeperturbation are used to construct a perturbation effect matrix for the GLM.

References

Anderson, C.; Wasserman, S.; and Crouch, B. (1999). ``A p* Primer: Logit Models for Social Networks. Social Networks, 21,37-66.

See Also

pstar

Examples

Run this code

#Create a random graph
g<-rgraph(5)

#How much does a one-edge change affect reciprocity?
eval.edgeperturbation(g,1,2,grecip)

Run the code above in your browser using DataLab