Learn R Programming

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

sna (version 0.41)

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, p* modeling, and network visualization.

Copy Link

Version

Install

install.packages('sna')

Monthly Downloads

25,238

Version

0.41

License

GPL Version 2 or newer

Maintainer

Carter T Butts

Last Published

September 8th, 2024

Functions in sna (0.41)

centralgraph

Find the Central Graph of a Labeled Graph Set
diag.remove

Remove the Diagonals of Adjacency Matrices in a Graph Stack
consensus

Estimate a Consensus Structure from Multiple Observations
is.isolate

Is Ego an Isolate?
gden

Find the Density of a Graph
degree

Compute the Degree Centrality Scores of Network Positions
gtrans

Compute the Transitivity of an Input Graph or Graph Stack
gcov

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

Butts' (Hierarchical) Bayesian Network Accuracy Model
bbnam.bf

Estimate Bayes Factors for the bbnam
print.netcancor

Printing for netcancor Objects
blockmodel.expand

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

Find the Structural Covariance(s) Between Two or More Graphs
make.stochastic

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

Add Isolates to a Graph
plot.equiv.clust

Plot an equiv.clust Object
components

Find the Number of (Maximal) Components Within a Given Graph
print.netlogit

Printing for netlogit Objects
geodist

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

Find the Hamming Distances Between Two or More Graphs
print.cugtest

Printing for cugtest Objects
closeness

Compute the Closeness Centrality Scores of Network Positions
lab.optimize

Optimize a Bivariate Graph Statistic Across a Set of Accessible Permutations
gvectorize

Vectorization of Adjacency Matrices
hierarchy

Compute Graph Hierarchy Scores
equiv.clust

Find Clusters of Positions Based on an Equivalence Relation
gliop

Return a Binary Operation on GLI Values Computed on Two Graphs
print.summary.bayes.factor

Printing for summary.bayes.factor Objects
betweenness

Compute the Betweenness Centrality Scores of Network Positions
blockmodel

Generate Blockmodels Based on Partitions of Network Positions
netcancor

Canonical Correlation for Labeled Graphs
numperm

Get the nth Permutation Vector by Periodic Placement
infocent

Find Information Centrality Scores of Network Positions
connectedness

Compute Graph Connectedness Scores
interval.graph

Convert Spell Data to Interval Graphs
print.bayes.factor

Printing for Bayes Factor Objects
event2dichot

Convert an Observed Event Matrix to a Dichotomous matrix
graphcent

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

Perform Conditional Uniform Graph (CUG) Hypothesis Tests for Graph-Level Indices
print.qaptest

Printing for qaptest Objects
mutuality

Find the Mutuality of a Graph
gplot

Two-Dimensional Visualization of Graphs
evcent

Find Eigenvector Centrality Scores of Network Positions
efficiency

Compute Graph Efficiency Scores
plot.cugtest

Plotting for cugtest Objects
grecip

Compute the Reciprocity of an Input Graph or Graph Stack
plot.matrix

Plot Matrices Using a Color/Intensity Grid
reachability

Find the Reachability Matrix of a Graph
lubness

Compute Graph LUBness Scores
potscalered.mcmc

Compute Gelman and Rubin's Potential Scale Reduction Measure for a Markov Chain Monte Carlo Simulation
lower.tri.remove

Remove the Lower Triangles of Adjacency Matrices in a Graph Stack
print.summary.cugtest

Printing for summary.cugtest Objects
pstar

Fit a p* Model Using a Logistic Approximation
rmperm

Randomly Permute the Rows and Columns of an Input Matrix
gcor

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

Generate Bernoulli Random Graphs
npostpred

Take Posterior Predictive Draws for Functions of Networks
bonpow

Find Bonacich Power Centrality Scores of Network Positions
gdist.plotdiff

Plot Differences in Graph-level Statistics Against Inter-graph Distances
component.dist

Calculate the Component Size Distribution of a Graph
stackcount

How Many Graphs are in a Graph Stack?
centralization

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

Symmetrize an Adjacency Matrix
sdmat

Estimate the Structural Distance Matrix for a Graph Set
gclust.centralgraph

Get Central Graphs Associated with Graph Clusters
gdist.plotstats

Plot Various Graph Statistics Over a Network MDS
print.summary.netcancor

Printing for summary.netcancor Objects
sr2css

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

Detailed Summaries of netlm Objects
structdist

Find the Structural Distances Between Two or More Graphs
dyad.census

Compute a Holland and Leinhardt MAN Dyad Census
print.summary.netlogit

Printing for summary.netlogit Objects
plot.qaptest

Plotting for qaptest Objects
print.summary.qaptest

Printing for summary.qaptest Objects
isolates

List the Isolates in a Graph or Graph Stack
stresscent

Compute the Stress Centrality Scores of Network Positions
gscor

Find the Structural Correlations Between Two or More Graphs
eval.edgeperturbation

Compute the Effects of Single-Edge Perturbations on Structural Indices
plot.bbnam

Plotting for bbnam Objects
print.blockmodel

Printing for blockmodel Objects
sna-internal

Internal sna Functions
print.bbnam

Printing for bbnam Objects
upper.tri.remove

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

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

Draw a Random Permutation Vector with Exchangeability Constraints
netlm

Linear Regression for Network Data
summary.netlogit

Detailed Summaries of netlogit Objects
netlogit

Logistic Regression for Network Data
summary.qaptest

Detailed Summaries of qaptest Objects
qaptest

Perform Quadratic Assignment Procedure (QAP) Hypothesis Tests for Graph-Level Statistics
print.summary.bbnam

Printing for summary.bbnam Objects
summary.bbnam

Detailed Summaries of bbnam Objects
sedist

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

Printing for netlm Objects
summary.netcancor

Detailed Summaries of netcancor Objects
prestige

Calculate the Vertex Prestige Scores
plot.blockmodel

Plotting for blockmodel Objects
read.nos

Read (N)eo-(O)rg(S)tat Input Files
print.summary.blockmodel

Printing for summary.blockmodel Objects
summary.blockmodel

Detailed Summaries of blockmodel Objects
summary.cugtest

Detailed Summaries of cugtest Objects
summary.bayes.factor

Detailed Summaries of Bayes Factor Objects
gclust.boxstats

Plot Statistics Associated with Graph Clusters
print.summary.netlm

Printing for summary.netlm Objects
triad.census

Compute the Davis and Leinhardt Triad Census
triad.classify

Compute the Davis and Leinhardt Classification of a Given Triad