getunknown: Dyads with unknown relationships

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

Description

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

Usage

1
   getunknown(X,relfreq=TRUE)

Arguments

X

Original sociomatrix.

relfreq

Logical. If TRUE, the function computes percentage of unknown relationships.

Details

getunknown computes the number of dyads with 0 interactions.

Value

unknown.dyads

Number of dyads with unknown relationships.

perc.unknown.dyads

Percentage of dyads with unknown 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, gettwowayrel.

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

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