Description Usage Arguments Value Author(s) References Examples
Compute Burt's indexes (effective size and aggregate constraint) and other measure from
sna
package.
It also allow to restrict the analysis to one social circle identified by the name of the alters.
1 | index.egonet(dat, index = list("effsize", "constraint", "outdegree", "indegree", "efficiency", "hierarchy", "centralization", "gden", "ego.gden"), subset = NULL, ego.name = "EGO")
|
dat |
graph to be analyzed having row and column names in the same order. |
index |
is a list containing prespecified index functions.
|
subset |
Restricts the analysis to the nodes with at least one among the elements of |
ego.name |
column and row name given to the ego subject. The default is |
The requested indices.
A. Sciandra, F. Gioachin, L. Finos <livio@stat.unipd.it>
Burt, R.S. (1992) ”Structural Holes. The Social Structure of Competition”, Cambridge (MA), Harvard University Press.
1 2 3 4 5 6 7 8 9 10 11 12 | # make a toy dataset
egomat <- matrix(c(0,1,1,1,0,0,1,0,0),3,3)
colnames(egomat) <- rownames(egomat) <- c("EGO", "1P", "1A")
index.egonet(egomat)
# an example with self defined index
my.outdegree <- function(dat) degree(dat,cmod="outdegree")[1]
index.egonet(egomat,index=c("effsize","constraint","outdegree","indegree","efficiency", "centralization", "gden", "ego.gden", my.outdegree=call("my.outdegree",dat=egomat)))
#Restricts the \code{outdegree} and \code{efficiency} to "EGO" and nodes with "P" in the name
index.egonet(egomat,index=c("outdegree","efficiency"),subset="P")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.