getvarh: Variance for Landau's Linearity Statistic -h-

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

Description

Function to obtain variance for Landau's h statistic.

Usage

1
   getvarh(X)

Arguments

X

Original sociomatrix.

Details

getvarh computes variance for Landau's h with the formula 18 \over{N^3}.

Value

varianceh

Variance for Landau's h statistic.

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

Landau, H. G. (1951). On dominance relations and the structure of animal societies: I. Effect of inherent characteristics. Bulletin of Mathematical Biophysics, 13, 1-19.

See Also

getexpech, getimplandau, getlandau, linear.hierarchy.test.

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

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