Learn R Programming

ergm.rank (version 4.1.1)

rank.inconsistency-ergmTerm: (Weighted) Inconsistency

Description

Measures the amount of disagreement between rankings of the focus network and a fixed covariate network x , by couting the number of pairwise comparisons for which the two networks disagree.

Usage

# valued: rank.inconsistency(x, attrname, weights, wtname, wtcenter)

Arguments

x, attrname

x can be a network with an edge attribute attrname containing the ranks or a matrix of appropriate dimension containing the ranks. If x is not given, it defaults to the LHS network, and if attrname is not given, it defaults to the response edge attribute.

weights

optional parameter to weigh the counts. Can be either a 3D \(n\times n\times n\) -array whose \((i,j,k)\) th element gives the weight for the comparison by \(i\) of \(j\) and \(k\) or a function taking three arguments, \(i\), \(j\), and \(k\), and returning the weight of this comparison.

wtname, wtcenter

If wtcenter=TRUE , the calculated weights will be centered around their mean. wtname can be used to label this term.

See Also

ergmTerm for index of model terms currently visible to the package.

ergm:::.formatTermKeywords("ergmTerm", "rank.inconsistency", "subsection")