Christophe Bonenfant, Jean-Michel Gaillard, Stéphane Dray, Anne Loison, Manuela Royer, and Daniel Chessel. 2007. Testing sexual segregation and aggregation: Old ways are best. Ecology 88:3202–3208.


Supplement

R code used to format the data and compute the SSAS. All raw data used in the examples detailed in the paper are also available.
Ecological Archives E088-196-S1
.

Copyright


Authors
File list (downloads)
Description


Author(s)

Christophe Bonenfant
Université de Lyon; Université Lyon 1; CNRS; UMR 5558
Laboratoire de Biométrie et Biologie Evolutive
43, boulevard du 11 novembre 1918
F-69622 Villeurbanne Cedex, France
Tel.: +33-472-448111
Fax: +33-472-431388
E-mail: bonenfan@biomserv.univ-lyon1.fr

Jean-Michel Gaillard
Université de Lyon; Université Lyon 1; CNRS; UMR 5558
Laboratoire de Biométrie et Biologie Evolutive
43, boulevard du 11 novembre 1918
F-69622 Villeurbanne Cedex, France
E-mail: gaillard@biomserv.univ-lyon1.fr

Stéphane Dray
Université de Lyon; Université Lyon 1; CNRS; UMR 5558
Laboratoire de Biométrie et Biologie Evolutive
43, boulevard du 11 novembre 1918
F-69622 Villeurbanne Cedex, France
E-mail: dray@biomserv.univ-lyon1.fr

Anne Loison
Université de Lyon; Université Lyon 1; CNRS; UMR 5558
Laboratoire de Biométrie et Biologie Evolutive
43, boulevard du 11 novembre 1918
F-69622 Villeurbanne Cedex, France
E-mail: loison@biomserv.univ-lyon1.fr

Manuela Royer
Université de Lyon; Université Lyon 1; CNRS; UMR 5558
Laboratoire de Biométrie et Biologie Evolutive
43, boulevard du 11 novembre 1918
F-69622 Villeurbanne Cedex, France
E-mail: royer@biomserv.univ-lyon1.fr

Daniel Chessel
Université de Lyon; Université Lyon 1; CNRS; UMR 5558
Laboratoire de Biométrie et Biologie Evolutive
43, boulevard du 11 novembre 1918
F-69622 Villeurbanne Cedex, France
E-mail: chessel@biomserv.univ-lyon1.fr


File list

SSAS.R

Description

The SSAS.R file is a plain text ascii file. The file contains the basic command lines to download the data (group composition of isard, roe deer, and red deer) and to perform a test for sexual segregation and aggregation on count based data. The code allows users to repeat the analyses and to draw the plots we present in the paper. The code is intended to be used with R statistical software.

Function definitions:

SSAS = Compute the Sexual Segregation and Aggregation Statistic (SSAS) of the observed data and the values of SSAS expected under the hypothesis of random association of males and females (default is set at the 95% critical level).

splitmfd = format raw data, a matrix with 3 columns (number of males, females and a grouping variable, i.e. month in this case), into a list.

plot1 = plot the month-specific value of SSAS (observed value) and the range of SSAS values where a random association of males and females occurs. The plot is a simple graphical representation of the formal tests returned by the SSAS function.



ESA Publications | Ecological Archives | Permissions | Citation | Contacts