Learn R Programming

sna (version 2.8)

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

26,014

Version

2.8

License

GPL (>= 2)

Maintainer

Last Published

September 8th, 2024

Functions in sna (2.8)

blockmodel.expand

Generate a Graph (or Stack) from a Given Blockmodel Using Particular Expansion Rules
bicomponent.dist

Calculate the Bicomponents of a Graph
add.isolates

Add Isolates to a Graph
blockmodel

Generate Blockmodels Based on Partitions of Network Positions
bbnam

Butts' (Hierarchical) Bayesian Network Accuracy Model
brokerage

Perform a Gould-Fernandez Brokerage Analysis
betweenness

Compute the Betweenness Centrality Scores of Network Positions
bbnam.bf

Estimate Bayes Factors for the bbnam
bn

Fit a Biased Net Model
centralgraph

Find the Central Graph of a Labeled Graph Stack
connectedness

Compute Graph Connectedness Scores
clique.census

Compute Cycle Census Information
bonpow

Find Bonacich Power Centrality Scores of Network Positions
consensus

Estimate a Consensus Structure from Multiple Observations
closeness

Compute the Closeness Centrality Scores of Network Positions
components

Find the Number of (Maximal) Components Within a Given Graph
component.dist

Calculate the Component Size Distribution of a Graph
component.size.byvertex

Get Component Sizes, by Vertex
coleman

Coleman's High School Friendship Data
centralization

Find the Centralization of a Given Network, for Some Measure of Centrality
ego.extract

Extract Egocentric Networks from Complete Network Data
cug.test

Univariate Conditional Uniform Graph Tests
equiv.clust

Find Clusters of Positions Based on an Equivalence Relation
efficiency

Compute Graph Efficiency Scores
cutpoints

Identify the Cutpoints of a Graph or Digraph
cugtest

Perform Conditional Uniform Graph (CUG) Hypothesis Tests for Graph-Level Indices
diag.remove

Remove the Diagonals of Adjacency Matrices in a Graph Stack
eval.edgeperturbation

Compute the Effects of Single-Edge Perturbations on Structural Indices
evcent

Find Eigenvector Centrality Scores of Network Positions
gcor

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

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

Compute the Degree Centrality Scores of Network Positions
flowbet

Calculate Flow Betweenness Scores of Network Positions
gapply

Apply Functions Over Vertex Neighborhoods
dyad.census

Compute a Holland and Leinhardt MAN Dyad Census
gden

Find the Density of a Graph
gplot.layout

Vertex Layout Functions for gplot
gplot.loop

Add Loops to a Plot
gilschmidt

Compute the Gil-Schmidt Power Index
event2dichot

Convert an Observed Event Matrix to a Dichotomous matrix
gliop

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

Three-Dimensional Visualization of Graphs
gplot

Two-Dimensional Visualization of Graphs
gdist.plotdiff

Plot Differences in Graph-level Statistics Against Inter-graph Distances
gplot3d.layout

Vertex Layout Functions for gplot3d
gplot3d.arrow

Add Arrows a Three-Dimensional Plot
gplot.arrow

Add Arrows or Segments to a Plot
graphcent

Compute the (Harary) Graph Centrality Scores of Network Positions
hierarchy

Compute Graph Hierarchy Scores
gdist.plotstats

Plot Various Graph Statistics Over a Network MDS
infocent

Find Information Centrality Scores of Network Positions
geodist

Fund the Numbers and Lengths of Geodesics Among Nodes in a Graph
gplot3d.loop

Add Loops to a Three-Dimensional Plot
grecip

Compute the Reciprocity of an Input Graph or Graph Stack
gclust.boxstats

Plot Statistics Associated with Graph Clusters
is.isolate

Is Ego an Isolate?
gt

Transpose an Input Graph
kcores

Compute the k-Core Structure of a Graph
gtrans

Compute the Transitivity of an Input Graph or Graph Stack
lab.optimize

Optimize a Bivariate Graph Statistic Across a Set of Accessible Permutations
interval.graph

Convert Spell Data to Interval Graphs
neighborhood

Compute Neighborhood Structures of Specified Order
is.connected

Is a Given Graph Connected?
isolates

List the Isolates in a Graph or Graph Stack
netcancor

Canonical Correlation for Labeled Graphs
mutuality

Find the Mutuality of a Graph
nacf

Sample Network Covariance and Correlation Functions
gclust.centralgraph

Get Central Graphs Associated with Graph Clusters
make.stochastic

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

Calculate Maximum Flows Between Vertices
lower.tri.remove

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

Get the nth Permutation Vector by Periodic Placement
plot.cugtest

Plotting for cugtest Objects
print.bbnam

Printing for bbnam Objects
lubness

Compute Graph LUBness Scores
gplot.target

Display a Graph in Target Diagram Form
kpath.census

Compute Path or Cycle Census Information
lnam

Fit a Linear Network Autocorrelation Model
print.blockmodel

Printing for blockmodel Objects
loadcent

Compute the Load Centrality Scores of Network Positions
plot.sociomatrix

Plot Matrices Using a Color/Intensity Grid
plot.equiv.clust

Plot an equiv.clust Object
gplot.vertex

Add Vertices to a Plot
npostpred

Take Posterior Predictive Draws for Functions of Networks
print.cugtest

Printing for cugtest Objects
potscalered.mcmc

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

Find the Number of Possible Ties in a Given Graph or Graph Stack
print.netlogit

Printing for netlogit Objects
print.lnam

Printing for lnam Objects
print.summary.bayes.factor

Printing for summary.bayes.factor Objects
netlm

Linear Regression for Network Data
print.summary.bbnam

Printing for summary.bbnam Objects
netlogit

Logistic Regression for Network Data
print.summary.blockmodel

Printing for summary.blockmodel Objects
print.summary.cugtest

Printing for summary.cugtest Objects
gscor

Find the Structural Correlations Between Two or More Graphs
print.summary.lnam

Printing for summary.lnam Objects
print.qaptest

Printing for qaptest Objects
print.summary.netcancor

Printing for summary.netcancor Objects
rgraph

Generate Bernoulli Random Graphs
print.summary.qaptest

Printing for summary.qaptest Objects
rguman

Draw Dyad Census-Conditioned Random Graphs
pstar

Fit a p*/ERG Model Using a Logistic Approximation
print.summary.netlm

Printing for summary.netlm Objects
sedist

Find a Matrix of Distances Between Positions Based on Structural Equivalence
print.summary.netlogit

Printing for summary.netlogit Objects
prestige

Calculate the Vertex Prestige Scores
print.bayes.factor

Printing for Bayes Factor Objects
simmelian

Find the Simmelian Tie Structure of a Graph
rgnm

Draw Density-Conditioned Random Graphs
print.netcancor

Printing for netcancor Objects
gscov

Find the Structural Covariance(s) Between Two or More Graphs
sna-coercion

sna Coercion Functions
gvectorize

Vectorization of Adjacency Matrices
sna

Tools for Social Network Analysis
sna.operators

Graphical Operators
summary.bbnam

Detailed Summaries of bbnam Objects
sna-defunct

Defunct sna Objects
print.netlm

Printing for netlm Objects
summary.blockmodel

Detailed Summaries of blockmodel Objects
redist

Find a Matrix of Distances Between Positions Based on Regular Equivalence
rgbn

Draw from a Skvoretz-Fararo Biased Net Process
rgnmix

Draw Mixing-Conditioned Random Graphs
qaptest

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

Symmetrize an Adjacency Matrix
reachability

Find the Reachability Matrix of a Graph
rperm

Draw a Random Permutation Vector with Exchangeability Constraints
sdmat

Estimate the Structural Distance Matrix for a Graph Stack
sna-deprecated

Deprecated Functions in sna Package
sr2css

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

Find the Hamming Distances Between Two or More Graphs
stackcount

How Many Graphs are in a Graph Stack?
structure.statistics

Compute Network Structure Statistics
summary.bayes.factor

Detailed Summaries of Bayes Factor Objects
triad.classify

Compute the Davis and Leinhardt Classification of a Given Triad
stresscent

Compute the Stress Centrality Scores of Network Positions
triad.census

Compute the Davis and Leinhardt Triad Census
upper.tri.remove

Remove the Upper Triangles of Adjacency Matrices in a Graph Stack
sna-internal

Internal sna Functions
structdist

Find the Structural Distances Between Two or More Graphs
summary.netcancor

Detailed Summaries of netcancor Objects
summary.netlogit

Detailed Summaries of netlogit Objects
summary.qaptest

Detailed Summaries of qaptest Objects
summary.netlm

Detailed Summaries of netlm Objects
write.dl

Write Output Graphs in DL Format
write.nos

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

Plotting for bbnam Objects
plot.blockmodel

Plotting for blockmodel Objects
plot.lnam

Plotting for lnam Objects
plot.qaptest

Plotting for qaptest Objects
read.dot

Read Graphviz DOT Files
read.nos

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

Draw From the Watts-Strogatz Rewiring Model
rmperm

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

Detailed Summaries of cugtest Objects
summary.lnam

Detailed Summaries of lnam Objects