Get David's Scores of Individuals
バージョン 1.0.0 (1.69 KB) 作成者:
Chen Xinfeng
Get David's Scores of Individuals. Useful to evaluate social rank. Its original version is "R/ds.R" package.
Get David's Scores of Individuals
Gammell et al, 2003, David's score: a more appropriate dominance ranking method than Clutton-Brock et al.'s index, Animal Behaviour.
ORIGINAL from R package https://rdrr.io/cran/compete/man/ds.html and https://rdrr.io/cran/EloRating/src/R/DS.R
2021-7-21, CHEN xinfeng, 北京脑科学与类脑研究中心,chenxinfeng@cibr.ac.cn
---- Example ----
% Identical to https://rdrr.io/cran/compete/man/ds.html
% > davidscore(m, norm = true, type = "D")
m=[NaN,0,0,0,0,1;
2,NaN,1,0,0,0;
30,18,NaN,0,0,4;
6, 0, 3,NaN,5,4;
19,19,8,267,NaN,1;
122,85,84,50,10,NaN];
davidscore(m,false) %[1]
davidscore(m,false, 'P') %[2]
davidscore(m) %[3], recommend
----Example output----
[1] -12.4902 -6.2707 -2.2101 0.4941 8.0409 12.4359
[2] -13.9512 -5.7767 -2.9904 1.5021 8.4535 12.7627
[3] 0.4183 1.4549 2.1317 2.5823 3.8402 4.5726
引用
Chen Xinfeng (2024). Get David's Scores of Individuals (https://www.mathworks.com/matlabcentral/fileexchange/96153-get-david-s-scores-of-individuals), MATLAB Central File Exchange. 取得済み .
MATLAB リリースの互換性
作成:
R2021a
すべてのリリースと互換性あり
プラットフォームの互換性
Windows macOS Linuxタグ
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!バージョン | 公開済み | リリース ノート | |
---|---|---|---|
1.0.0 |