gettied: Dyads with tied relationships

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

Description

Function to obtain the number of tied relationships of the observed sociomatrix.

Usage

1
   gettied(X,relfreq=TRUE)

Arguments

X

Original sociomatrix.

relfreq

Logical. If TRUE the function computes percentage of tied relationships.

Details

gettied computes the number of dyads in which the individuals receive and address an equal number of interactions.

Value

tied.dyads

Number of dyads with tied relationships.

perc.tied.dyads

Percentage of dyads with tied relationships.

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

van Hooff, J. A. R. A. M., & Wensing, J. A. B. (1987). Dominance and its behavioral measures in a captive wolf pack. In H. W. Frank (Ed.), Man and wolf (pp. 219-252). Dordrecht: Junk Publishers.

See Also

getonewayrel, gettwowayrel, getunknown.

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
  gettied(X)

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