ISIranks: ISI ranks

Description Usage Arguments Details Value Examples

View source: R/ISIranks.R

Description

ISI ranks

Usage

1
ISIranks(x, sortbyID = TRUE)

Arguments

x

a list of matrices, with the same column names, typically the output of ISI

sortbyID

logical, should the output be sorted by ID (default is TRUE). If FALSE, output is sorted by (average rank)

Details

if there is more than one solution resulting from ISI, average (mean) ranks will be calculated. If there is only one solution, the average rank will be the same as the rank from the (one) ISI ranking

Value

a data.frame with at least three columns: IDs, their average rank and the rankings of all rankings that satisfy ISI's minimum criteria

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
# no unique solution
data(adv)
mat <- creatematrix(winners = adv$winner, losers = adv$loser)
set.seed(123)
res <- ISI(mat)
ISIranks(res)
ISIranks(res, sortbyID = FALSE)

# only one (and unique) solution
data(bonobos)
set.seed(123)
res <- ISI(bonobos)
ISIranks(res)
ISIranks(res, sortbyID = FALSE)

Example output

Loading required package: zoo

Attaching package:zooThe following objects are masked frompackage:base:

    as.Date, as.Date.numeric

Loading required package: sna
Loading required package: statnet.common

Attaching package:statnet.commonThe following object is masked frompackage:base:

    order

Loading required package: network
network: Classes for Relational Data
Version 1.16.1 created on 2020-10-06.
copyright (c) 2005, Carter T. Butts, University of California-Irvine
                    Mark S. Handcock, University of California -- Los Angeles
                    David R. Hunter, Penn State University
                    Martina Morris, University of Washington
                    Skye Bender-deMoll, University of Washington
 For citation information, type citation("network").
 Type help("network-package") to get started.

sna: Tools for Social Network Analysis
Version 2.6 created on 2020-10-5.
copyright (c) 2005, Carter T. Butts, University of California-Irvine
 For citation information, type citation("sna").
 Type help(package="sna") to get started.

more than 1 solution
I = 1 
SI = 2 
  ID avg rnkg1 rnkg2 rnkg3
1  a   7     7     7     7
2  b   1     1     1     1
3  c   2     2     2     2
4  d   3     3     3     3
5  e   5     6     4     5
6  f   5     5     6     4
7  g   5     4     5     6
  ID avg rnkg1 rnkg2 rnkg3
1  b   1     1     1     1
2  c   2     2     2     2
3  d   3     3     3     3
4  e   5     6     4     5
5  f   5     5     6     4
6  g   5     4     5     6
7  a   7     7     7     7
I = 0 
SI = 0 
  ID avg rnkg1
1 De   4     4
2 Dz   2     2
3 He   1     1
4 Ho   3     3
5 Ki   7     7
6 Ko   6     6
7 Re   5     5
  ID avg rnkg1
1 He   1     1
2 Dz   2     2
3 Ho   3     3
4 De   4     4
5 Re   5     5
6 Ko   6     6
7 Ki   7     7

EloRating documentation built on March 26, 2020, 7:29 p.m.