Learn R Programming

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

sna (version 2.3-2)

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

18,943

Version

2.3-2

License

GPL (>= 2)

Maintainer

Carter Butts

Last Published

January 14th, 2014

Functions in sna (2.3-2)

bn

Fit a Biased Net Model
efficiency

Compute Graph Efficiency Scores
gplot.loop

Add Loops to a Plot
gliop

Return a Binary Operation on GLI Values Computed on Two Graphs
sna-defunct

Defunct sna Objects
coleman

Coleman's High School Friendship Data
gcov

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

Two-Dimensional Visualization of Graphs
bbnam.bf

Estimate Bayes Factors for the bbnam
connectedness

Compute Graph Connectedness Scores
bicomponent.dist

Calculate the Bicomponents of a Graph
loadcent

Compute the Load Centrality Scores of Network Positions
gplot3d.loop

Add Loops to a Three-Dimensional Plot
gdist.plotstats

Plot Various Graph Statistics Over a Network MDS
betweenness

Compute the Betweenness Centrality Scores of Network Positions
cutpoints

Identify the Cutpoints of a Graph or Digraph
event2dichot

Convert an Observed Event Matrix to a Dichotomous matrix
blockmodel.expand

Generate a Graph (or Stack) from a Given Blockmodel Using Particular Expansion Rules
is.isolate

Is Ego an Isolate?
components

Find the Number of (Maximal) Components Within a Given Graph
gclust.boxstats

Plot Statistics Associated with Graph Clusters
gplot3d.arrow

Add Arrows a Three-Dimensional Plot
gplot.layout

Vertex Layout Functions for gplot
gdist.plotdiff

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

Generate Blockmodels Based on Partitions of Network Positions
equiv.clust

Find Clusters of Positions Based on an Equivalence Relation
kpath.census

Compute Path or Cycle Census Information
ego.extract

Extract Egocentric Networks from Complete Network Data
degree

Compute the Degree Centrality Scores of Network Positions
print.lnam

Printing for lnam Objects
bonpow

Find Bonacich Power Centrality Scores of Network Positions
nties

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

Find the Hamming Distances Between Two or More Graphs
maxflow

Calculate Maximum Flows Between Vertices
is.connected

Is a Given Graph Connected?
mutuality

Find the Mutuality of a Graph
plot.qaptest

Plotting for qaptest Objects
centralgraph

Find the Central Graph of a Labeled Graph Stack
gplot3d

Three-Dimensional Visualization of Graphs
print.blockmodel

Printing for blockmodel Objects
plot.equiv.clust

Plot an equiv.clust Object
bbnam

Butts' (Hierarchical) Bayesian Network Accuracy Model
cugtest

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

Draw a Random Permutation Vector with Exchangeability Constraints
gplot3d.layout

Vertex Layout Functions for gplot3d
geodist

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

Find Information Centrality Scores of Network Positions
numperm

Get the nth Permutation Vector by Periodic Placement
stackcount

How Many Graphs are in a Graph Stack?
graphcent

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

Compute Graph LUBness Scores
print.cugtest

Printing for cugtest Objects
write.nos

Write Output Graphs in (N)eo-(O)rg(S)tat Format
print.summary.cugtest

Printing for summary.cugtest Objects
closeness

Compute the Closeness Centrality Scores of Network Positions
diag.remove

Remove the Diagonals of Adjacency Matrices in a Graph Stack
redist

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

Printing for summary.netlogit Objects
print.netlogit

Printing for netlogit Objects
gt

Transpose an Input Graph
gscor

Find the Structural Correlations Between Two or More Graphs
neighborhood

Compute Neighborhood Structures of Specified Order
print.summary.blockmodel

Printing for summary.blockmodel Objects
rgbn

Draw from a Skvoretz-Fararo Biased Net Process
gplot.arrow

Add Arrows or Segments to a Plot
netlogit

Logistic Regression for Network Data
plot.blockmodel

Plotting for blockmodel Objects
sedist

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

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

Plotting for lnam Objects
rgnmix

Draw Mixing-Conditioned Random Graphs
brokerage

Perform a Gould-Fernandez Brokerage Analysis
print.summary.qaptest

Printing for summary.qaptest Objects
symmetrize

Symmetrize an Adjacency Matrix
dyad.census

Compute a Holland and Leinhardt MAN Dyad Census
gcor

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

Calculate Flow Betweenness Scores of Network Positions
make.stochastic

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

Draw Density-Conditioned Random Graphs
clique.census

Compute Cycle Census Information
consensus

Estimate a Consensus Structure from Multiple Observations
gplot.vertex

Add Vertices to a Plot
stresscent

Compute the Stress Centrality Scores of Network Positions
read.dot

Read Graphviz DOT Files
netlm

Linear Regression for Network Data
add.isolates

Add Isolates to a Graph
component.dist

Calculate the Component Size Distribution of a Graph
plot.sociomatrix

Plot Matrices Using a Color/Intensity Grid
kcores

Compute the k-Core Structure of a Graph
gscov

Find the Structural Covariance(s) Between Two or More Graphs
interval.graph

Convert Spell Data to Interval Graphs
centralization

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

Take Posterior Predictive Draws for Functions of Networks
nacf

Sample Network Covariance and Correlation Functions
hierarchy

Compute Graph Hierarchy Scores
print.netlm

Printing for netlm Objects
print.netcancor

Printing for netcancor Objects
netcancor

Canonical Correlation for Labeled Graphs
structdist

Find the Structural Distances Between Two or More Graphs
gden

Find the Density of a Graph
write.dl

Write Output Graphs in DL Format
summary.netcancor

Detailed Summaries of netcancor Objects
print.summary.netcancor

Printing for summary.netcancor Objects
print.summary.lnam

Printing for summary.lnam Objects
reachability

Find the Reachability Matrix of a Graph
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
summary.qaptest

Detailed Summaries of qaptest Objects
upper.tri.remove

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

Detailed Summaries of blockmodel Objects
print.bbnam

Printing for bbnam Objects
print.summary.netlm

Printing for summary.netlm Objects
summary.bbnam

Detailed Summaries of bbnam Objects
grecip

Compute the Reciprocity of an Input Graph or Graph Stack
pstar

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

Detailed Summaries of lnam Objects
rgraph

Generate Bernoulli Random Graphs
rgws

Draw From the Watts-Strogatz Rewiring Model
structure.statistics

Compute Network Structure Statistics
sr2css

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

Detailed Summaries of cugtest Objects
prestige

Calculate the Vertex Prestige Scores
read.nos

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

List the Isolates in a Graph or Graph Stack
lab.optimize

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

Estimate the Structural Distance Matrix for a Graph Stack
rguman

Draw Dyad Census-Conditioned Random Graphs
rmperm

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

Printing for Bayes Factor Objects
summary.netlogit

Detailed Summaries of netlogit Objects
plot.bbnam

Plotting for bbnam Objects
qaptest

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

Printing for summary.bayes.factor Objects
summary.bayes.factor

Detailed Summaries of Bayes Factor Objects
sna-deprecated

Deprecated Functions in sna Package
summary.netlm

Detailed Summaries of netlm Objects
triad.classify

Compute the Davis and Leinhardt Classification of a Given Triad
plot.cugtest

Plotting for cugtest Objects
sna-internal

Internal sna Functions
gapply

Apply Functions Over Vertex Neighborhoods
gclust.centralgraph

Get Central Graphs Associated with Graph Clusters
gtrans

Compute the Transitivity of an Input Graph or Graph Stack
lnam

Fit a Linear Network Autocorrelation Model
sna

Tools for Social Network Analysis
triad.census

Compute the Davis and Leinhardt Triad Census
gvectorize

Vectorization of Adjacency Matrices
cug.test

Univariate Conditional Uniform Graph Tests
evcent

Find Eigenvector Centrality Scores of Network Positions
eval.edgeperturbation

Compute the Effects of Single-Edge Perturbations on Structural Indices
gplot.target

Display a Graph in Target Diagram Form
print.qaptest

Printing for qaptest Objects
sna-coercion

sna Coercion Functions
sna.operators

Graphical Operators