gettwowayrel: Dyads with two way relationships

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

Description

Function to obtain the number of dyads with two way relationships of the observed sociomatrix.

Usage

1
   gettwowayrel(X, relfreq=TRUE)

Arguments

X

Original sociomatrix.

relfreq

Logical. If TRUE the function computes relative frequencies of two way relationships.

Details

gettwowayrel computes the number of dyads in which both members address and receive behaviours.

Value

twoway.dyads

Number of dyads with two way relationships.

perc.twoway.dyads

Percentage of dyads with two 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, gettied, 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
  gettwowayrel(X)

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