getcirc: Number of circular triads

Description Usage Arguments Details Value Author(s) References See Also Examples

Description

Function to obtain the number of circular triads of an observed matrix.

Usage

1
   getcirc(X)

Arguments

X

Original sociomatrix.

Details

getcirc computes the number of circular triads in a sociomatrix with the following formula:

d = {{N ≤ft( N-1 \right) ≤ft( 2N-1 \right)} \over 12} - {{1\over2} ∑\limits_{i = 1}^N {S_i}^2},

where S_i is the row sum of the matrix of dominances.

This function it is also used in getkendall in order to compute the circularity index proposed by Kendall and Babington Smith (1940).

Value

circular

Number of circular triads.

Author(s)

David Leiva <dleivaur@ub.edu>, Antonio Solanas <antonio.solanas@ub.edu>, Han de Vries <J.deVries1@uu.nl>, & David A. Kenny <david.kenny@uconn.edu>.

References

Kendall, M. G., & Babington Smith, B. (1940). On the method of paired comparisons. Biometrika, 31, 324-345.

See Also

getexpeccirc, getkendall, getpvkendall.

Examples

1
2
3
4
  set.seed(123)
  X <- matrix(floor(runif(20*20,min=0,max=20)),nrow=20,byrow=TRUE)
  diag(X)<-0
  getcirc(X)

DLEIVA/DyaDA documentation built on May 6, 2019, 1:17 p.m.