Learn R Programming

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

sna (version 0.3)

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

License

GPL Version 2 or newer

Maintainer

Carter T Butts

Last Published

September 8th, 2024

Functions in sna (0.3)

centralgraph

Find the Central Graph of a Labeled Graph Set
summary.bayes.factor

Detailed Summaries of Bayes Factor Objects
betweenness

Compute the Betweenness Centrality Scores of Network Positions
eval.edgeperturbation

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

Canonical Correlation for Labeled Graphs
lab.optimize

Optimize a Bivariate Graph Statistic Across a Set of Accessible Permutations
print.netlogit

Printing for netlogit Objects
gliop

Return a Binary Operation on GLI Values Computed on Two Graphs
lower.tri.remove

Remove the Lower Triangles of Adjacency Matrices in a Graph Stack
component.dist

Calculate the Component Size Distribution of a Graph
sedist

Find a Matrix of Distances Between Positions Based on Structural Equivalence
netlogit

Logistic Regression for Network Data
equiv.clust

Find Clusters of Positions Based on an Equivalence Relation
nties

Find the Number of Possible Ties in a Given Graph or Stack
bbnam.bf

Estimate Bayes Factors for the bbnam
bbnam

Butts' (Hierarchical) Bayesian Network Accuracy Model
print.summary.cugtest

Printing for summary.cugtest Objects
pstar

Fit a p* Model Using a Logistic Approximation
gdist.plotstats

Plot Various Graph Statistics Over a Network MDS
summary.qaptest

Detailed Summaries of qaptest Objects
summary.blockmodel

Detailed Summaries of blockmodel Objects
plot.cugtest

Plotting for cugtest Objects
isolates

List the Isolates in a Graph or Graph Stack
summary.netlogit

Detailed Summaries of netlogit Objects
closeness

Compute the Closeness Centrality Scores of Network Positions
gclust.centralgraph

Get Central Graphs Associated with Graph Clusters
print.summary.bbnam

Printing for summary.bbnam Objects
blockmodel

Generate Blockmodels Based on Partitions of Network Positions
sdmat

Estimate the Structural Distance Matrix for a Graph Set
summary.netlm

Detailed Summaries of netlm Objects
stackcount

How Many Graphs are in a Graph Stack?
mutuality

Find the Mutuality of a Graph
bonpow

Find Bonacich Power Centrality Scores of Network Positions
rperm

Draw a Random Permutation Vector with Exchangeability Constraints
print.summary.netlogit

Printing for summary.netlogit Objects
print.summary.netcancor

Printing for summary.netcancor Objects
degree

Compute the Degree Centrality Scores of Network Positions
print.netcancor

Printing for netcancor Objects
potscalered.mcmc

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

Printing for blockmodel Objects
print.summary.netlm

Printing for summary.netlm Objects
event2dichot

Convert an Observed Event Matrix to a Dichotomous matrix
npostpred

Take Posterior Predictive Draws for Functions of Networks
blockmodel.expand

Generate a Graph (or Stack) from a Given Blockmodel Using Particular Expansion Rules
diag.remove

Remove the Diagonals of Adjacency Matrices in a Graph Stack
make.stochastic

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

Printing for Bayes Factor Objects
print.bbnam

Printing for bbnam Objects
summary.cugtest

Detailed Summaries of cugtest Objects
prestige

Calculate the Vertex Prestige Scores
symmetrize

Symmetrize an Adjacency Matrix
cugtest

Perform Conditional Uniform Graph (CUG) Hypothesis Tests for Graph-Level Indices
gdist.plotdiff

Plot Differences in Graph-level Statistics Against Inter-graph Distances
gclust.boxstats

Plot Statistics Associated with Graph Clusters
numperm

Get the nth Permutation Vector by Periodic Placement
geodist

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

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

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

Printing for netlm Objects
print.cugtest

Printing for cugtest Objects
print.summary.blockmodel

Printing for summary.blockmodel Objects
sna-internal

Internal sna Functions
netlm

Linear Regression for Network Data
rmperm

Randomly Permute the Rows and Columns of an Input Matrix
gcov

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

Add Isolates to a Graph
qaptest

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

Compute the Stress Centrality Scores of Network Positions
plot.qaptest

Plotting for qaptest Objects
components

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

Find the Centralization of a Given Network, for Some Measure of Centrality
plot.equiv.clust

Plot an equiv.clust Object
gden

Find the Density of a Graph
interval.graph

Convert Spell Data to Interval Graphs
plot.bbnam

Plotting for bbnam Objects
plot.blockmodel

Plotting for blockmodel Objects
plot.matrix

Plot Matrices Using a Color/Intensity Grid
sr2css

Convert a Row-wise Self-Report Matrix to a CSS Matrix with Missing Observations
evcent

Find Eigenvector Centrality Scores of Network Positions
grecip

Compute the Reciprocity of an Input Graph or Graph Stack
summary.netcancor

Detailed Summaries of netcancor Objects
gvectorize

Vectorization of Adjacency Matrices
consensus

Estimate a Consensus Structure from Multiple Observations
print.summary.qaptest

Printing for summary.qaptest Objects
structdist

Find the Structural Distances Between Two or More Graphs
hdist

Find the Hamming Distances Between Two or More Graphs
gplot

Two-Dimensional Visualization of Graphs
print.qaptest

Printing for qaptest Objects
is.isolate

Is Ego an Isolate?
gtrans

Compute the Transitivity of an Input Graph or Graph Stack
upper.tri.remove

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

Printing for summary.bayes.factor Objects
gcor

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

Find the Structural Covariance(s) Between Two or More Graphs
rgraph

Generate Bernoulli Random Graphs
summary.bbnam

Detailed Summaries of bbnam Objects
read.nos

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