Supplement 1. R code used to format the data and compute the SSAS.
收藏NIAID Data Ecosystem2026-03-09 收录
下载链接:
https://figshare.com/articles/dataset/Supplement_1_R_code_used_to_format_the_data_and_compute_the_SSAS_/3528698
下载链接
链接失效反馈官方服务:
资源简介:
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.
创建时间:
2016-08-05



