Learn R Programming

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

sna (version 0.4)

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.4

License

GPL Version 2 or newer

Maintainer

Carter T Butts

Last Published

September 8th, 2024

Functions in sna (0.4)

component.dist

Calculate the Component Size Distribution of a Graph
efficiency

Compute Graph Efficiency Scores
addisolates

Add Isolates to a Graph
betweenness

Compute the Betweenness Centrality Scores of Network Positions
closeness

Compute the Closeness Centrality Scores of Network Positions
components

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

Find Bonacich Power Centrality Scores of Network Positions
gtrans

Compute the Transitivity of an Input Graph or Graph Stack
bbnam.bf

Estimate Bayes Factors for the bbnam
gden

Find the Density of a Graph
centralization

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

Compute the Degree Centrality Scores of Network Positions
gdist.plotdiff

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

Generate Bernoulli Random Graphs
equiv.clust

Find Clusters of Positions Based on an Equivalence Relation
hdist

Find the Hamming Distances Between Two or More Graphs
geodist

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

Butts' (Hierarchical) Bayesian Network Accuracy Model
reachability

Find the Reachability Matrix of a Graph
blockmodel.expand

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

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

Plot Statistics Associated with Graph Clusters
print.summary.netlm

Printing for summary.netlm Objects
read.nos

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

Plotting for blockmodel Objects
gscov

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

Printing for qaptest Objects
is.isolate

Is Ego an Isolate?
lubness

Compute Graph LUBness Scores
cugtest

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

Compute Graph Connectedness Scores
plot.qaptest

Plotting for qaptest Objects
dyad.census

Compute a Holland and Leinhardt MAN Dyad Census
hierarchy

Compute Graph Hierarchy Scores
gdist.plotstats

Plot Various Graph Statistics Over a Network MDS
make.stochastic

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

Convert an Observed Event Matrix to a Dichotomous matrix
print.bbnam

Printing for bbnam Objects
print.summary.netcancor

Printing for summary.netcancor Objects
gcov

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

Two-Dimensional Visualization of Graphs
structdist

Find the Structural Distances Between Two or More Graphs
pstar

Fit a p* Model Using a Logistic Approximation
evcent

Find Eigenvector Centrality Scores of Network Positions
print.netlm

Printing for netlm Objects
gscor

Find the Structural Correlations Between Two or More Graphs
print.netcancor

Printing for netcancor Objects
print.blockmodel

Printing for blockmodel Objects
lab.optimize

Optimize a Bivariate Graph Statistic Across a Set of Accessible Permutations
summary.netlm

Detailed Summaries of netlm Objects
eval.edgeperturbation

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

Vectorization of Adjacency Matrices
isolates

List the Isolates in a Graph or Graph Stack
gclust.centralgraph

Get Central Graphs Associated with Graph Clusters
sdmat

Estimate the Structural Distance Matrix for a Graph Set
netlm

Linear Regression for Network Data
summary.bbnam

Detailed Summaries of bbnam Objects
diag.remove

Remove the Diagonals of Adjacency Matrices in a Graph Stack
npostpred

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

Remove the Lower Triangles of Adjacency Matrices in a Graph Stack
print.bayes.factor

Printing for Bayes Factor Objects
stackcount

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

Detailed Summaries of netcancor Objects
netcancor

Canonical Correlation for Labeled Graphs
rperm

Draw a Random Permutation Vector with Exchangeability Constraints
centralgraph

Find the Central Graph of a Labeled Graph Set
infocent

Find Information Centrality Scores of Network Positions
graphcent

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

Generate Blockmodels Based on Partitions of Network Positions
print.summary.netlogit

Printing for summary.netlogit Objects
sedist

Find a Matrix of Distances Between Positions Based on Structural Equivalence
plot.bbnam

Plotting for bbnam Objects
plot.equiv.clust

Plot an equiv.clust Object
print.summary.qaptest

Printing for summary.qaptest Objects
gcor

Find the (Product-Moment) Correlation Between Two or More Labeled Graphs
plot.matrix

Plot Matrices Using a Color/Intensity Grid
nties

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

Plotting for cugtest Objects
summary.cugtest

Detailed Summaries of cugtest Objects
sna-internal

Internal sna Functions
sr2css

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

Detailed Summaries of blockmodel Objects
print.summary.cugtest

Printing for summary.cugtest Objects
triad.census

Compute the Davis and Leinhardt Triad Census
consensus

Estimate a Consensus Structure from Multiple Observations
summary.qaptest

Detailed Summaries of qaptest Objects
print.summary.blockmodel

Printing for summary.blockmodel Objects
upper.tri.remove

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

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

Detailed Summaries of netlogit Objects
gliop

Return a Binary Operation on GLI Values Computed on Two Graphs
print.cugtest

Printing for cugtest Objects
netlogit

Logistic Regression for Network Data
prestige

Calculate the Vertex Prestige Scores
summary.bayes.factor

Detailed Summaries of Bayes Factor Objects
symmetrize

Symmetrize an Adjacency Matrix
stresscent

Compute the Stress Centrality Scores of Network Positions
potscalered.mcmc

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

Printing for summary.bbnam Objects
mutuality

Find the Mutuality of a Graph
numperm

Get the nth Permutation Vector by Periodic Placement
print.netlogit

Printing for netlogit Objects
print.summary.bayes.factor

Printing for summary.bayes.factor Objects
triad.classify

Compute the Davis and Leinhardt Classification of a Given Triad
interval.graph

Convert Spell Data to Interval Graphs
rmperm

Randomly Permute the Rows and Columns of an Input Matrix
plot.sociomatrix

Plot Matrices Using a Color/Intensity Grid
print.summary.lnam

Printing for summary.lnam Objects
gplot.layout

Vertex Layout Functions for gplot
sna.operators

Graphical Operators
lnam

Fit a Linear Network Autocorrelation Model
summary.lnam

Detailed Summaries of lnam Objects
plot.lnam

Plotting for lnam Objects
print.lnam

Printing for lnam Objects
gapply

Apply Functions Over Vertex Neighborhoods