Learn R Programming

compete

Analyzing head-to-head competitive interaction data


Author: James P. Curley,

Contributions: Jiayi Fu, Ke Shen & Ziheng Huang

Maintainer: James P. Curley

email: jc3181 AT columbia DOT edu


Installation
devtools::install_github('jalapic/compete')
Citation

Even though this package is in development, if you do use it in published research please cite it as:

Curley, J.P. 2016, compete: Analyzing competitive interaction data: R package version 0.1


Functions

  • get_wl_matrix - turns edgelist into Win-Loss Sociomatrix

  • get_di_matrix - turns Win-Loss Sociomatrix into Binary Win-Loss Sociomatrix

  • org_matrix - organize Sociomatrix

  • dci - Directional Consistency of Sociomatrix

  • phi - Phi Skew-Symmetry Coefficient of Sociomatrix

  • dc_test - Randomization Test of Directional Consistency and Phi Skew-Symmetry

  • devries - Modified Landau's h' of Sociomatrix and randomization test

  • ttri - Triangle Transitivity of Sociomatrix

  • ttri_test - Randomization Test of Triangle Transitivity of Sociomatrix

  • isi98 - I&SI ranking of Sociomatrix (see documentation)

  • isi13 - I&SI ranking of Sociomatrix using updated algorithm (see documentation)

  • ds - get David's Scores of Sociomatrix


Published papers

This package was used in the following papers:

So, N. et al. 2015, A Social Network Approach Reveals Associations between Mouse Social Dominance and Brain Gene Expression, PLOS ONE

Curley JP, 2016, Temporal Pairwise-Correlation Analysis Provides Empirical Support for Attention Hierarchies in Mice, Biology Letters

Williamson C, Lee W & Curley JP, 2016, Temporal Dynamics of Social Hierarchy Formation and Maintenance in Male Mice., Animal Behaviour.

Copy Link

Version

Install

install.packages('compete')

Monthly Downloads

8

Version

0.1

License

GPL-3

Issues

Pull Requests

Stars

Forks

Maintainer

James Curley

Last Published

June 17th, 2016

Functions in compete (0.1)

ds

Get David's Scores of Individuals
caribou

Caribou sociomatrix
get_di_matrix

Transforms a frequency interaction sociomatrix (valued data) into a dichotomized 1/0 matrix
el

Winner-Loser Edgelist
devries

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

Converts results dataframe to win-loss dataframe
get_wl_matrix

Converts win-loss dataframe to win-loss matrix
bonobos

Bonobo sociomatrix
dc_test

Randomization Test of DC and Skew-Symmetry of a Sociomatrix.
dci

Get the directional consistency index (DCI) of a sociomatrix.
ttri_test

Signficance testing of Triangle Transitivity of Sociomatrix
sparseness

Calculate the sparseness of relationships in a sociomatrix
isi98

Compute best ranked matrixed based on original I&SI method
isi13

Compute best ranked matrixed based on new I&SI method
randomtourney

Generates a randomized tournament with random outcomes
rshps

Get Relaiontship Descriptives of Sociomatrix
people

Human sociomatrix
phi

Get the phi skew-symmetry of a sociomatrix.
mouse

Mouse sociomatrix
org_matrix

Organize rows and columns of a matrix
ttri

Get Triangle Transitivity of Sociomatrix
unknowns

Calculate the number of unknown relationships in a sociomatrix