# sna v2.4

0

Monthly downloads

## Tools for Social Network Analysis

A range of tools for social network analysis, including node and graph-level indices, structural distance and covariance methods, structural equivalence detection, network regression, random graph generation, and 2D/3D network visualization.

## Functions in sna

Name | Description | |

centralgraph | Find the Central Graph of a Labeled Graph Stack | |

closeness | Compute the Closeness Centrality Scores of Network Positions | |

component.dist | Calculate the Component Size Distribution of a Graph | |

clique.census | Compute Cycle Census Information | |

consensus | Estimate a Consensus Structure from Multiple Observations | |

centralization | Find the Centralization of a Given Network, for Some Measure of Centrality | |

coleman | Coleman's High School Friendship Data | |

connectedness | Compute Graph Connectedness Scores | |

component.size.byvertex | Get Component Sizes, by Vertex | |

cug.test | Univariate Conditional Uniform Graph Tests | |

components | Find the Number of (Maximal) Components Within a Given Graph | |

ego.extract | Extract Egocentric Networks from Complete Network Data | |

efficiency | Compute Graph Efficiency Scores | |

evcent | Find Eigenvector Centrality Scores of Network Positions | |

cugtest | Perform Conditional Uniform Graph (CUG) Hypothesis Tests for Graph-Level Indices | |

equiv.clust | Find Clusters of Positions Based on an Equivalence Relation | |

dyad.census | Compute a Holland and Leinhardt MAN Dyad Census | |

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

cutpoints | Identify the Cutpoints of a Graph or Digraph | |

diag.remove | Remove the Diagonals of Adjacency Matrices in a Graph Stack | |

degree | Compute the Degree Centrality Scores of Network Positions | |

gclust.boxstats | Plot Statistics Associated with Graph Clusters | |

gdist.plotdiff | Plot Differences in Graph-level Statistics Against Inter-graph Distances | |

gclust.centralgraph | Get Central Graphs Associated with Graph Clusters | |

gcor | Find the (Product-Moment) Correlation Between Two or More Labeled Graphs | |

gcov | Find the Covariance(s) Between Two or More Labeled Graphs | |

event2dichot | Convert an Observed Event Matrix to a Dichotomous matrix | |

gden | Find the Density of a Graph | |

gapply | Apply Functions Over Vertex Neighborhoods | |

flowbet | Calculate Flow Betweenness Scores of Network Positions | |

gdist.plotstats | Plot Various Graph Statistics Over a Network MDS | |

geodist | Fund the Numbers and Lengths of Geodesics Among Nodes in a Graph | |

gplot | Two-Dimensional Visualization of Graphs | |

gplot.loop | Add Loops to a Plot | |

gplot.layout | Vertex Layout Functions for gplot | |

gilschmidt | Compute the Gil-Schmidt Power Index | |

gplot3d.arrow | Add Arrows a Three-Dimensional Plot | |

gplot.target | Display a Graph in Target Diagram Form | |

gplot.vertex | Add Vertices to a Plot | |

gplot.arrow | Add Arrows or Segments to a Plot | |

gliop | Return a Binary Operation on GLI Values Computed on Two Graphs | |

gplot3d.loop | Add Loops to a Three-Dimensional Plot | |

graphcent | Compute the (Harary) Graph Centrality Scores of Network Positions | |

grecip | Compute the Reciprocity of an Input Graph or Graph Stack | |

gplot3d | Three-Dimensional Visualization of Graphs | |

gscor | Find the Structural Correlations Between Two or More Graphs | |

gtrans | Compute the Transitivity of an Input Graph or Graph Stack | |

gplot3d.layout | Vertex Layout Functions for gplot3d | |

gscov | Find the Structural Covariance(s) Between Two or More Graphs | |

gvectorize | Vectorization of Adjacency Matrices | |

gt | Transpose an Input Graph | |

lab.optimize | Optimize a Bivariate Graph Statistic Across a Set of Accessible Permutations | |

lnam | Fit a Linear Network Autocorrelation Model | |

bbnam.bf | Estimate Bayes Factors for the bbnam | |

interval.graph | Convert Spell Data to Interval Graphs | |

add.isolates | Add Isolates to a Graph | |

infocent | Find Information Centrality Scores of Network Positions | |

mutuality | Find the Mutuality of a Graph | |

maxflow | Calculate Maximum Flows Between Vertices | |

numperm | Get the nth Permutation Vector by Periodic Placement | |

nties | Find the Number of Possible Ties in a Given Graph or Graph Stack | |

potscalered.mcmc | Compute Gelman and Rubin's Potential Scale Reduction Measure for a Markov Chain Monte Carlo Simulation | |

prestige | Calculate the Vertex Prestige Scores | |

print.summary.bbnam | Printing for summary.bbnam Objects | |

read.nos | Read (N)eo-(O)rg(S)tat Input Files | |

print.summary.blockmodel | Printing for summary.blockmodel Objects | |

sedist | Find a Matrix of Distances Between Positions Based on Structural Equivalence | |

sdmat | Estimate the Structural Distance Matrix for a Graph Stack | |

redist | Find a Matrix of Distances Between Positions Based on Regular Equivalence | |

hdist | Find the Hamming Distances Between Two or More Graphs | |

brokerage | Perform a Gould-Fernandez Brokerage Analysis | |

hierarchy | Compute Graph Hierarchy Scores | |

nacf | Sample Network Covariance and Correlation Functions | |

plot.qaptest | Plotting for qaptest Objects | |

neighborhood | Compute Neighborhood Structures of Specified Order | |

reachability | Find the Reachability Matrix of a Graph | |

print.netlogit | Printing for netlogit Objects | |

print.netlm | Printing for netlm Objects | |

plot.sociomatrix | Plot Matrices Using a Color/Intensity Grid | |

structure.statistics | Compute Network Structure Statistics | |

structdist | Find the Structural Distances Between Two or More Graphs | |

summary.blockmodel | Detailed Summaries of blockmodel Objects | |

summary.cugtest | Detailed Summaries of cugtest Objects | |

bicomponent.dist | Calculate the Bicomponents of a Graph | |

bbnam | Butts' (Hierarchical) Bayesian Network Accuracy Model | |

make.stochastic | Make a Graph Stack Row, Column, or Row-column Stochastic | |

lubness | Compute Graph LUBness Scores | |

is.isolate | Is Ego an Isolate? | |

is.connected | Is a Given Graph Connected? | |

plot.blockmodel | Plotting for blockmodel Objects | |

plot.cugtest | Plotting for cugtest Objects | |

print.blockmodel | Printing for blockmodel Objects | |

blockmodel.expand | Generate a Graph (or Stack) from a Given Blockmodel Using Particular Expansion Rules | |

blockmodel | Generate Blockmodels Based on Partitions of Network Positions | |

plot.lnam | Plotting for lnam Objects | |

plot.equiv.clust | Plot an equiv.clust Object | |

sna.operators | Graphical Operators | |

rgws | Draw From the Watts-Strogatz Rewiring Model | |

rguman | Draw Dyad Census-Conditioned Random Graphs | |

bn | Fit a Biased Net Model | |

sr2css | Convert a Row-wise Self-Report Matrix to a CSS Matrix with Missing Observations | |

bonpow | Find Bonacich Power Centrality Scores of Network Positions | |

kcores | Compute the k-Core Structure of a Graph | |

isolates | List the Isolates in a Graph or Graph Stack | |

lower.tri.remove | Remove the Lower Triangles of Adjacency Matrices in a Graph Stack | |

loadcent | Compute the Load Centrality Scores of Network Positions | |

npostpred | Take Posterior Predictive Draws for Functions of Networks | |

netlogit | Logistic Regression for Network Data | |

read.dot | Read Graphviz DOT Files | |

print.bbnam | Printing for bbnam Objects | |

print.bayes.factor | Printing for Bayes Factor Objects | |

rgnmix | Draw Mixing-Conditioned Random Graphs | |

rgraph | Generate Bernoulli Random Graphs | |

stackcount | How Many Graphs are in a Graph Stack? | |

summary.netlm | Detailed Summaries of netlm Objects | |

stresscent | Compute the Stress Centrality Scores of Network Positions | |

summary.netlogit | Detailed Summaries of netlogit Objects | |

write.dl | Write Output Graphs in DL Format | |

write.nos | Write Output Graphs in (N)eo-(O)rg(S)tat Format | |

print.cugtest | Printing for cugtest Objects | |

print.summary.netcancor | Printing for summary.netcancor Objects | |

print.summary.netlm | Printing for summary.netlm Objects | |

qaptest | Perform Quadratic Assignment Procedure (QAP) Hypothesis Tests for Graph-Level Statistics | |

sna-defunct | Defunct sna Objects | |

sna-coercion | sna Coercion Functions | |

pstar | Fit a p*/ERG Model Using a Logistic Approximation | |

symmetrize | Symmetrize an Adjacency Matrix | |

summary.qaptest | Detailed Summaries of qaptest Objects | |

print.summary.cugtest | Printing for summary.cugtest Objects | |

print.summary.lnam | Printing for summary.lnam Objects | |

print.summary.netlogit | Printing for summary.netlogit Objects | |

print.summary.qaptest | Printing for summary.qaptest Objects | |

rmperm | Randomly Permute the Rows and Columns of an Input Matrix | |

rperm | Draw a Random Permutation Vector with Exchangeability Constraints | |

summary.bbnam | Detailed Summaries of bbnam Objects | |

summary.bayes.factor | Detailed Summaries of Bayes Factor Objects | |

summary.netcancor | Detailed Summaries of netcancor Objects | |

summary.lnam | Detailed Summaries of lnam Objects | |

kpath.census | Compute Path or Cycle Census Information | |

netlm | Linear Regression for Network Data | |

netcancor | Canonical Correlation for Labeled Graphs | |

plot.bbnam | Plotting for bbnam Objects | |

print.lnam | Printing for lnam Objects | |

print.summary.bayes.factor | Printing for summary.bayes.factor Objects | |

print.qaptest | Printing for qaptest Objects | |

print.netcancor | Printing for netcancor Objects | |

rgbn | Draw from a Skvoretz-Fararo Biased Net Process | |

rgnm | Draw Density-Conditioned Random Graphs | |

triad.census | Compute the Davis and Leinhardt Triad Census | |

sna | Tools for Social Network Analysis | |

sna-internal | Internal sna Functions | |

upper.tri.remove | Remove the Upper Triangles of Adjacency Matrices in a Graph Stack | |

No Results! |

## Last month downloads

## Details

Date | 2016-07-23 |

License | GPL (>= 2) |

URL | http://www.statnet.org |

NeedsCompilation | yes |

Packaged | 2016-08-06 00:48:44 UTC; buttsc |

Repository | CRAN |

Date/Publication | 2016-08-08 09:36:22 |

depends | network , R (>= 2.0.0) , statnet.common , utils |

suggests | numDeriv , rgl , SparseM |

Contributors | Carter Butts |

#### Include our badge in your README

```
[![Rdoc](http://www.rdocumentation.org/badges/version/sna)](http://www.rdocumentation.org/packages/sna)
```