devries: Calculate the linearity of a dominance hierarchy - De Vries'...

Description Usage Arguments Value References Further details Examples

View source: R/devries.R

Description

Calculate the linearity of a dominance hierarchy - De Vries' method

Usage

1
devries(m, Nperms = 10000, history = FALSE, plot = FALSE)

Arguments

m

A matrix with individuals ordered identically in rows and columns.

Nperms

Number of randomizations

history

Whether to store results of randomization

plot

Whether to plot results of randomization

Value

The modified Landau's h' value of m, the associated p-value

References

Han de Vries (1995) An improved test of linearity in dominance hierarchies containing unknown or tied relationships. Animal Behaviour 50 pp. 1375-1389.

Further details

This code is an edited and faster version of code originally written by Dai Shizuka. http://biosci.unl.edu/daizaburo-shizuka Note that plot will only be shown if history=F

Examples

1
2
3

jalapic/compete documentation built on Feb. 23, 2020, 5:33 p.m.