offdefsc: Kleinberg's HITS algorithm for Rating and Ranking with Square...

Description Usage Arguments Details Author(s) References Examples

View source: R/Rfun_offdefsc.R

Description

Calculate ratings and provide rankings using Kleinberg's HITS algorithm, using a square matrix for score matrix (presenter-presenter)

Usage

1
2
3
4
5
6
7
8
offdefsc(
  jpMat,
  method = "hitspp",
  totalsupporteps = 0,
  totalsupporttype = 1,
  numiter = 100,
  ties.method = "average"
)

Arguments

jpMat

a Judge-Presenter matrix, or a User-Movie matrix

method

a character string specifying the HITS algorithm, including "hitspp".

totalsupporteps

a small number to guarantee the total support property

totalsupporttype

an indicater: 1 stands for matrix ee^T and 2 stands for matrix ee^T - I

numiter

a number of iterations

ties.method

a character string specifying how ties are treated, including "average", "first", "last", "random", "max", "min", from base::rank

Details

Large offense score means strong offense, and large defense score means weak defense

  1. hitspp: HITS, using presenter-presenter matrix, equivalent to offdefsc

  2. offdefsc: Offense-Defense rating method, using presenter-presenter matrix

Author(s)

Jiangtao Gou

References

Gou, J. and Wu, S. (2020). A Judging System for Project Showcase: Rating and Ranking with Incomplete Information. Technical Report.

Kleinberg, J. M. (1999). Authoritative sources in a hyperlinked environment. Journal of the ACM 46, 604-632.

Langville, A. N. and Meyer, C. D. (2012). Who's Number 1?: The Science of Rating and Ranking. Princeton University Press.

Examples

1
2
3
4
5
6
7
8
jpMat <- matrix(data=c(5,4,3,0, 5,5,3,1, 0,0,0,5, 0,0,2,0, 4,0,0,3, 1,0,0,4),nrow=6,byrow=TRUE)
 method <- 'hitspp'
totalsupporteps <- 0.01
totalsupporttype <- 1
numiter <- 10
ties.method <-'average'
result <- offdefsc(jpMat, method, totalsupporteps, totalsupporttype, numiter, ties.method)
print(result)

raincin documentation built on July 1, 2020, 5:53 p.m.

Related to offdefsc in raincin...