⚠️There's a newer version (2.7-2) of this package.Take me there.

sna (version 2.5)

Tools for Social Network Analysis

Description

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.

Copy Link

Version

Install

install.packages('sna')

Monthly Downloads

15,571

Version

2.5

License

GPL (>= 2)

Maintainer

Last Published

December 10th, 2019

Functions in sna (2.5)

blockmodel.expand

Generate a Graph (or Stack) from a Given Blockmodel Using Particular Expansion Rules
coleman

Coleman's High School Friendship Data
component.dist

Calculate the Component Size Distribution of a Graph
add.isolates

Add Isolates to a Graph
blockmodel

Generate Blockmodels Based on Partitions of Network Positions
bicomponent.dist

Calculate the Bicomponents of a Graph
component.size.byvertex

Get Component Sizes, by Vertex
components

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

Find Bonacich Power Centrality Scores of Network Positions
bbnam.bf

Estimate Bayes Factors for the bbnam
brokerage

Perform a Gould-Fernandez Brokerage Analysis
betweenness

Compute the Betweenness Centrality Scores of Network Positions
closeness

Compute the Closeness Centrality Scores of Network Positions
clique.census

Compute Cycle Census Information
equiv.clust

Find Clusters of Positions Based on an Equivalence Relation
cug.test

Univariate Conditional Uniform Graph Tests
diag.remove

Remove the Diagonals of Adjacency Matrices in a Graph Stack
gapply

Apply Functions Over Vertex Neighborhoods
dyad.census

Compute a Holland and Leinhardt MAN Dyad Census
flowbet

Calculate Flow Betweenness Scores of Network Positions
centralgraph

Find the Central Graph of a Labeled Graph Stack
evcent

Find Eigenvector Centrality Scores of Network Positions
gplot

Two-Dimensional Visualization of Graphs
gplot3d.layout

Vertex Layout Functions for gplot3d
cugtest

Perform Conditional Uniform Graph (CUG) Hypothesis Tests for Graph-Level Indices
gplot3d.loop

Add Loops to a Three-Dimensional Plot
event2dichot

Convert an Observed Event Matrix to a Dichotomous matrix
gplot.arrow

Add Arrows or Segments to a Plot
connectedness

Compute Graph Connectedness Scores
consensus

Estimate a Consensus Structure from Multiple Observations
bbnam

Butts' (Hierarchical) Bayesian Network Accuracy Model
gplot.target

Display a Graph in Target Diagram Form
kcores

Compute the k-Core Structure of a Graph
centralization

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

Compute Graph Efficiency Scores
gplot3d

Three-Dimensional Visualization of Graphs
gvectorize

Vectorization of Adjacency Matrices
gplot3d.arrow

Add Arrows a Three-Dimensional Plot
gplot.vertex

Add Vertices to a Plot
hdist

Find the Hamming Distances Between Two or More Graphs
gcor

Find the (Product-Moment) Correlation Between Two or More Labeled Graphs
ego.extract

Extract Egocentric Networks from Complete Network Data
gcov

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

Find the Mutuality of a Graph
lab.optimize

Optimize a Bivariate Graph Statistic Across a Set of Accessible Permutations
gplot.layout

Vertex Layout Functions for gplot
eval.edgeperturbation

Compute the Effects of Single-Edge Perturbations on Structural Indices
gclust.boxstats

Plot Statistics Associated with Graph Clusters
cutpoints

Identify the Cutpoints of a Graph or Digraph
gplot.loop

Add Loops to a Plot
gclust.centralgraph

Get Central Graphs Associated with Graph Clusters
gt

Transpose an Input Graph
hierarchy

Compute Graph Hierarchy Scores
gtrans

Compute the Transitivity of an Input Graph or Graph Stack
infocent

Find Information Centrality Scores of Network Positions
degree

Compute the Degree Centrality Scores of Network Positions
nacf

Sample Network Covariance and Correlation Functions
plot.cugtest

Plotting for cugtest Objects
print.bbnam

Printing for bbnam Objects
plot.equiv.clust

Plot an equiv.clust Object
print.blockmodel

Printing for blockmodel Objects
npostpred

Take Posterior Predictive Draws for Functions of Networks
lower.tri.remove

Remove the Lower Triangles of Adjacency Matrices in a Graph Stack
lubness

Compute Graph LUBness Scores
nties

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

Find the Density of a Graph
gdist.plotdiff

Plot Differences in Graph-level Statistics Against Inter-graph Distances
gliop

Return a Binary Operation on GLI Values Computed on Two Graphs
gilschmidt

Compute the Gil-Schmidt Power Index
print.cugtest

Printing for cugtest Objects
maxflow

Calculate Maximum Flows Between Vertices
make.stochastic

Make a Graph Stack Row, Column, or Row-column Stochastic
numperm

Get the nth Permutation Vector by Periodic Placement
gscor

Find the Structural Correlations Between Two or More Graphs
gdist.plotstats

Plot Various Graph Statistics Over a Network MDS
print.lnam

Printing for lnam Objects
is.isolate

Is Ego an Isolate?
gscov

Find the Structural Covariance(s) Between Two or More Graphs
kpath.census

Compute Path or Cycle Census Information
print.netlogit

Printing for netlogit Objects
print.summary.lnam

Printing for summary.lnam Objects
isolates

List the Isolates in a Graph or Graph Stack
lnam

Fit a Linear Network Autocorrelation Model
loadcent

Compute the Load Centrality Scores of Network Positions
print.summary.cugtest

Printing for summary.cugtest Objects
plot.qaptest

Plotting for qaptest Objects
plot.lnam

Plotting for lnam Objects
print.summary.blockmodel

Printing for summary.blockmodel Objects
redist

Find a Matrix of Distances Between Positions Based on Regular Equivalence
print.summary.qaptest

Printing for summary.qaptest Objects
print.summary.netcancor

Printing for summary.netcancor Objects
rgbn

Draw from a Skvoretz-Fararo Biased Net Process
pstar

Fit a p*/ERG Model Using a Logistic Approximation
netlm

Linear Regression for Network Data
netlogit

Logistic Regression for Network Data
rguman

Draw Dyad Census-Conditioned Random Graphs
rgraph

Generate Bernoulli Random Graphs
sna-internal

Internal sna Functions
geodist

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

Tools for Social Network Analysis
sna-coercion

sna Coercion Functions
sedist

Find a Matrix of Distances Between Positions Based on Structural Equivalence
is.connected

Is a Given Graph Connected?
grecip

Compute the Reciprocity of an Input Graph or Graph Stack
graphcent

Compute the (Harary) Graph Centrality Scores of Network Positions
interval.graph

Convert Spell Data to Interval Graphs
neighborhood

Compute Neighborhood Structures of Specified Order
print.qaptest

Printing for qaptest Objects
plot.sociomatrix

Plot Matrices Using a Color/Intensity Grid
potscalered.mcmc

Compute Gelman and Rubin's Potential Scale Reduction Measure for a Markov Chain Monte Carlo Simulation
summary.qaptest

Detailed Summaries of qaptest Objects
sna-deprecated

Deprecated Functions in sna Package
sna-defunct

Defunct sna Objects
summary.netlm

Detailed Summaries of netlm Objects
summary.netlogit

Detailed Summaries of netlogit Objects
write.dl

Write Output Graphs in DL Format
upper.tri.remove

Remove the Upper Triangles of Adjacency Matrices in a Graph Stack
symmetrize

Symmetrize an Adjacency Matrix
reachability

Find the Reachability Matrix of a Graph
qaptest

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

Canonical Correlation for Labeled Graphs
structdist

Find the Structural Distances Between Two or More Graphs
structure.statistics

Compute Network Structure Statistics
rperm

Draw a Random Permutation Vector with Exchangeability Constraints
sdmat

Estimate the Structural Distance Matrix for a Graph Stack
plot.bbnam

Plotting for bbnam Objects
plot.blockmodel

Plotting for blockmodel Objects
prestige

Calculate the Vertex Prestige Scores
print.bayes.factor

Printing for Bayes Factor Objects
print.netlm

Printing for netlm Objects
print.netcancor

Printing for netcancor Objects
summary.blockmodel

Detailed Summaries of blockmodel Objects
summary.cugtest

Detailed Summaries of cugtest Objects
write.nos

Write Output Graphs in (N)eo-(O)rg(S)tat Format
print.summary.bbnam

Printing for summary.bbnam Objects
print.summary.netlogit

Printing for summary.netlogit Objects
rmperm

Randomly Permute the Rows and Columns of an Input Matrix
print.summary.netlm

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

Printing for summary.bayes.factor Objects
rgws

Draw From the Watts-Strogatz Rewiring Model
read.dot

Read Graphviz DOT Files
stackcount

How Many Graphs are in a Graph Stack?
stresscent

Compute the Stress Centrality Scores of Network Positions
summary.netcancor

Detailed Summaries of netcancor Objects
triad.classify

Compute the Davis and Leinhardt Classification of a Given Triad
summary.lnam

Detailed Summaries of lnam Objects
triad.census

Compute the Davis and Leinhardt Triad Census
summary.bayes.factor

Detailed Summaries of Bayes Factor Objects
sna.operators

Graphical Operators
rgnm

Draw Density-Conditioned Random Graphs
sr2css

Convert a Row-wise Self-Report Matrix to a CSS Matrix with Missing Observations
summary.bbnam

Detailed Summaries of bbnam Objects
rgnmix

Draw Mixing-Conditioned Random Graphs
read.nos

Read (N)eo-(O)rg(S)tat Input Files
bn

Fit a Biased Net Model