ttri_test: Signficance testing of Triangle Transitivity of Sociomatrix

Description Usage Arguments Value Further details Examples

View source: R/ttri_test.R

Description

Signficance testing of Triangle Transitivity of Sociomatrix

Usage

1
ttri_test(m, Nperms = 1000)

Arguments

m

A frequency or binary win-loss matrix

Nperms

Number of randomizations in signficance test

Value

Pt, triangle transitivity and pvalue

Further details

Algorithm described in D. Shizuka and D. B. McDonald, 2012, A social network perspective on transitivity and linearity in dominance hierarchies. Animal Behaviour. DOI:10.1016/j.anbehav.2012.01.011 Code adapted from original code by Dai Shikua - see http://www.shizukalab.com/toolkits/sna/triangle-transitivity

Examples

1

Example output

$Pt
[1] 0.95

$ttri
[1] 0.8

$pval
[1] 0

compete documentation built on May 29, 2017, 1:39 p.m.