getonewayrel: Dyads with one way relationships

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

Description

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

Usage

1
   getonewayrel(X, relfreq=TRUE)

Arguments

X

Original sociomatrix.

relfreq

Logical. If TRUE the function computes percentage of dyads with one way relationships.

Details

getonewayrel computes the number of dyads in which one member addresses behaviours and the other does not.

Value

oneway.dyads

Number of dyads with one way relationships.

perc.oneway.dyads

Percentage of dyads with one way 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

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

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