Learn R Programming

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

sna (version 2.7-1)

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

24,574

Version

2.7-1

License

GPL (>= 2)

Maintainer

Last Published

January 24th, 2023

Functions in sna (2.7-1)

bbnam.bf

Estimate Bayes Factors for the bbnam
bonpow

Find Bonacich Power Centrality Scores of Network Positions
blockmodel.expand

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

Perform a Gould-Fernandez Brokerage Analysis
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
component.size.byvertex

Get Component Sizes, by Vertex
betweenness

Compute the Betweenness Centrality Scores of Network Positions
connectedness

Compute Graph Connectedness Scores
components

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

Estimate a Consensus Structure from Multiple Observations
efficiency

Compute Graph Efficiency Scores
ego.extract

Extract Egocentric Networks from Complete Network Data
coleman

Coleman's High School Friendship Data
bn

Fit a Biased Net Model
gden

Find the Density of a Graph
centralgraph

Find the Central Graph of a Labeled Graph Stack
component.dist

Calculate the Component Size Distribution of a Graph
cutpoints

Identify the Cutpoints of a Graph or Digraph
degree

Compute the Degree Centrality Scores of Network Positions
cug.test

Univariate Conditional Uniform Graph Tests
clique.census

Compute Cycle Census Information
evcent

Find Eigenvector Centrality Scores of Network Positions
event2dichot

Convert an Observed Event Matrix to a Dichotomous matrix
gdist.plotdiff

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

Three-Dimensional Visualization of Graphs
cugtest

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

Compute the Gil-Schmidt Power Index
gliop

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

Add Arrows a Three-Dimensional Plot
interval.graph

Convert Spell Data to Interval Graphs
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
is.connected

Is a Given Graph Connected?
closeness

Compute the Closeness Centrality Scores of Network Positions
neighborhood

Compute Neighborhood Structures of Specified Order
netcancor

Canonical Correlation for Labeled Graphs
netlm

Linear Regression for Network Data
gcor

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

Logistic Regression for Network Data
gcov

Find the Covariance(s) Between Two or More Labeled Graphs
equiv.clust

Find Clusters of Positions Based on an Equivalence Relation
gplot.layout

Vertex Layout Functions for gplot
kcores

Compute the k-Core Structure of a Graph
gplot.loop

Add Loops to a Plot
rgws

Draw From the Watts-Strogatz Rewiring Model
gdist.plotstats

Plot Various Graph Statistics Over a Network MDS
geodist

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

Randomly Permute the Rows and Columns of an Input Matrix
sna-coercion

sna Coercion Functions
dyad.census

Compute a Holland and Leinhardt MAN Dyad Census
sna-defunct

Defunct sna Objects
flowbet

Calculate Flow Betweenness 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
gapply

Apply Functions Over Vertex Neighborhoods
graphcent

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

Find the Structural Covariance(s) Between Two or More Graphs
gplot.target

Display a Graph in Target Diagram Form
gclust.boxstats

Plot Statistics Associated with Graph Clusters
gplot.vertex

Add Vertices to a Plot
gclust.centralgraph

Get Central Graphs Associated with Graph Clusters
grecip

Compute the Reciprocity of an Input Graph or Graph Stack
hierarchy

Compute Graph Hierarchy Scores
lab.optimize

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

Find Information Centrality Scores of Network Positions
gplot

Two-Dimensional Visualization of Graphs
lnam

Fit a Linear Network Autocorrelation Model
gplot.arrow

Add Arrows or Segments to a Plot
gt

Transpose an Input Graph
structure.statistics

Compute Network Structure Statistics
loadcent

Compute the Load Centrality Scores of Network Positions
plot.cugtest

Plotting for cugtest Objects
plot.equiv.clust

Plot an equiv.clust Object
make.stochastic

Make a Graph Stack Row, Column, or Row-column Stochastic
gplot3d.layout

Vertex Layout Functions for gplot3d
gplot3d.loop

Add Loops to a Three-Dimensional Plot
summary.bayes.factor

Detailed Summaries of Bayes Factor Objects
plot.bbnam

Plotting for bbnam Objects
gtrans

Compute the Transitivity of an Input Graph or Graph Stack
plot.blockmodel

Plotting for blockmodel Objects
maxflow

Calculate Maximum Flows Between Vertices
gvectorize

Vectorization of Adjacency Matrices
print.cugtest

Printing for cugtest Objects
hdist

Find the Hamming Distances Between Two or More Graphs
lower.tri.remove

Remove the Lower Triangles of Adjacency Matrices in a Graph Stack
plot.lnam

Plotting for lnam Objects
numperm

Get the nth Permutation Vector by Periodic Placement
is.isolate

Is Ego an Isolate?
kpath.census

Compute Path or Cycle Census Information
print.lnam

Printing for lnam Objects
lubness

Compute Graph LUBness Scores
prestige

Calculate the Vertex Prestige Scores
npostpred

Take Posterior Predictive Draws for Functions of Networks
plot.qaptest

Plotting for qaptest Objects
print.netlogit

Printing for netlogit Objects
nties

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

Printing for qaptest Objects
print.summary.qaptest

Printing for summary.qaptest Objects
pstar

Fit a p*/ERG Model Using a Logistic Approximation
print.bayes.factor

Printing for Bayes Factor Objects
isolates

List the Isolates in a Graph or Graph Stack
print.bbnam

Printing for bbnam Objects
summary.cugtest

Detailed Summaries of cugtest Objects
mutuality

Find the Mutuality of a Graph
print.summary.blockmodel

Printing for summary.blockmodel Objects
summary.lnam

Detailed Summaries of lnam Objects
print.blockmodel

Printing for blockmodel Objects
print.summary.lnam

Printing for summary.lnam Objects
print.netcancor

Printing for netcancor Objects
print.summary.cugtest

Printing for summary.cugtest Objects
nacf

Sample Network Covariance and Correlation Functions
symmetrize

Symmetrize an Adjacency Matrix
print.netlm

Printing for netlm Objects
triad.census

Compute the Davis and Leinhardt Triad Census
print.summary.netcancor

Printing for summary.netcancor 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
qaptest

Perform Quadratic Assignment Procedure (QAP) Hypothesis Tests for Graph-Level Statistics
read.dot

Read Graphviz DOT Files
reachability

Find the Reachability Matrix of a Graph
redist

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

Generate Bernoulli Random Graphs
rguman

Draw Dyad Census-Conditioned Random Graphs
rgbn

Draw from a Skvoretz-Fararo Biased Net Process
rperm

Draw a Random Permutation Vector with Exchangeability Constraints
read.nos

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

Printing for summary.bayes.factor Objects
sdmat

Estimate the Structural Distance Matrix for a Graph Stack
sr2css

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

Printing for summary.bbnam Objects
stackcount

How Many Graphs are in a Graph Stack?
sna

Tools for Social Network Analysis
print.summary.netlm

Printing for summary.netlm Objects
print.summary.netlogit

Printing for summary.netlogit Objects
rgnm

Draw Density-Conditioned Random Graphs
sedist

Find a Matrix of Distances Between Positions Based on Structural Equivalence
sna.operators

Graphical Operators
rgnmix

Draw Mixing-Conditioned Random Graphs
sna-deprecated

Deprecated Functions in sna Package
summary.bbnam

Detailed Summaries of bbnam Objects
simmelian

Find the Simmelian Tie Structure of a Graph
summary.blockmodel

Detailed Summaries of blockmodel Objects
sna-internal

Internal sna Functions
triad.classify

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

Detailed Summaries of netlogit Objects
upper.tri.remove

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

Detailed Summaries of qaptest Objects
stresscent

Compute the Stress Centrality Scores of Network Positions
structdist

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

Detailed Summaries of netcancor 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