Learn R Programming

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

sna (version 0.43)

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

21,920

Version

0.43

License

GPL Version 2 or newer

Maintainer

Carter Butts

Last Published

September 8th, 2024

Functions in sna (0.43)

print.summary.bayes.factor

Printing for summary.bayes.factor Objects
gscor

Find the Structural Correlations Between Two or More Graphs
blockmodel

Generate Blockmodels Based on Partitions of Network Positions
is.isolate

Is Ego an Isolate?
closeness

Compute the Closeness Centrality Scores of Network Positions
centralgraph

Find the Central Graph of a Labeled Graph Set
consensus

Estimate a Consensus Structure from Multiple Observations
component.dist

Calculate the Component Size Distribution of a Graph
betweenness

Compute the Betweenness Centrality Scores of Network Positions
components

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

Printing for summary.qaptest Objects
degree

Compute the Degree Centrality Scores of Network Positions
eval.edgeperturbation

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

Get the nth Permutation Vector by Periodic Placement
connectedness

Compute Graph Connectedness Scores
gcor

Find the (Product-Moment) Correlation Between Two or More Labeled Graphs
bbnam.bf

Estimate Bayes Factors for the bbnam
geodist

Fund the Numbers and Lengths of Geodesics Among Nodes in a Graph
blockmodel.expand

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

Find Eigenvector Centrality Scores of Network Positions
print.summary.blockmodel

Printing for summary.blockmodel Objects
graphcent

Compute the (Harary) Graph Centrality Scores of Network Positions
gclust.centralgraph

Get Central Graphs Associated with Graph Clusters
efficiency

Compute Graph Efficiency Scores
gden

Find the Density of a Graph
isolates

List the Isolates in a Graph or Graph Stack
gdist.plotstats

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

Printing for summary.netcancor Objects
prestige

Calculate the Vertex Prestige Scores
print.blockmodel

Printing for blockmodel Objects
equiv.clust

Find Clusters of Positions Based on an Equivalence Relation
gtrans

Compute the Transitivity of an Input Graph or Graph Stack
event2dichot

Convert an Observed Event Matrix to a Dichotomous matrix
netlogit

Logistic Regression for Network Data
dyad.census

Compute a Holland and Leinhardt MAN Dyad Census
netcancor

Canonical Correlation for Labeled Graphs
read.nos

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

Find the Centralization of a Given Network, for Some Measure of Centrality
diag.remove

Remove the Diagonals of Adjacency Matrices in a Graph Stack
addisolates

Add Isolates to a Graph
gclust.boxstats

Plot Statistics Associated with Graph Clusters
hdist

Find the Hamming Distances Between Two or More Graphs
plot.bbnam

Plotting for bbnam Objects
print.summary.netlm

Printing for summary.netlm Objects
plot.blockmodel

Plotting for blockmodel Objects
bonpow

Find Bonacich Power Centrality Scores of Network Positions
stresscent

Compute the Stress Centrality Scores of Network Positions
print.netcancor

Printing for netcancor Objects
mutuality

Find the Mutuality of a Graph
potscalered.mcmc

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

Detailed Summaries of bbnam Objects
lower.tri.remove

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

Two-Dimensional Visualization of Graphs
summary.netcancor

Detailed Summaries of netcancor Objects
print.netlogit

Printing for netlogit Objects
summary.qaptest

Detailed Summaries of qaptest Objects
print.bbnam

Printing for bbnam Objects
print.summary.bbnam

Printing for summary.bbnam Objects
bbnam

Butts' (Hierarchical) Bayesian Network Accuracy Model
grecip

Compute the Reciprocity of an Input Graph or Graph Stack
pstar

Fit a p* Model Using a Logistic Approximation
triad.census

Compute the Davis and Leinhardt Triad Census
rmperm

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

Printing for cugtest Objects
plot.sociomatrix

Plot Matrices Using a Color/Intensity Grid
sdmat

Estimate the Structural Distance Matrix for a Graph Set
rgraph

Generate Bernoulli Random Graphs
qaptest

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

Symmetrize an Adjacency Matrix
sedist

Find a Matrix of Distances Between Positions Based on Structural Equivalence
upper.tri.remove

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

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

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

Make a Graph Stack Row, Column, or Row-column Stochastic
print.netlm

Printing for netlm Objects
npostpred

Take Posterior Predictive Draws for Functions of Networks
lubness

Compute Graph LUBness Scores
gscov

Find the Structural Covariance(s) Between Two or More Graphs
print.bayes.factor

Printing for Bayes Factor Objects
sna-internal

Internal sna Functions
infocent

Find Information Centrality Scores of Network Positions
triad.classify

Compute the Davis and Leinhardt Classification of a Given Triad
sr2css

Convert a Row-wise Self-Report Matrix to a CSS Matrix with Missing Observations
interval.graph

Convert Spell Data to Interval Graphs
gvectorize

Vectorization of Adjacency Matrices
netlm

Linear Regression for Network Data
print.qaptest

Printing for qaptest Objects
rperm

Draw a Random Permutation Vector with Exchangeability Constraints
summary.blockmodel

Detailed Summaries of blockmodel Objects
summary.netlogit

Detailed Summaries of netlogit Objects
gdist.plotdiff

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

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

Compute Graph Hierarchy Scores
lab.optimize

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

Find the Number of Possible Ties in a Given Graph or Stack
plot.qaptest

Plotting for qaptest Objects
plot.cugtest

Plotting for cugtest Objects
reachability

Find the Reachability Matrix of a Graph
summary.netlm

Detailed Summaries of netlm Objects
summary.bayes.factor

Detailed Summaries of Bayes Factor Objects
print.summary.netlogit

Printing for summary.netlogit Objects
plot.equiv.clust

Plot an equiv.clust Object
print.summary.cugtest

Printing for summary.cugtest Objects
structdist

Find the Structural Distances Between Two or More Graphs
stackcount

How Many Graphs are in a Graph Stack?
summary.cugtest

Detailed Summaries of cugtest Objects