naive: Simple Linear Models for Rating and Ranking

Description Usage Arguments Author(s) References Examples

View source: R/Rfun_naive.R

Description

Calculate ratings and provide rankings using Simple Linear regression

Usage

1
naive(jpMat, stats = FALSE, ties.method = "average")

Arguments

jpMat

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

stats

a logical value to indicate whether a linear model should be fitted and the test statistics should be reported

ties.method

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

Author(s)

Jiangtao Gou

Shuyi Wu

References

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

Examples

1
2
3
4
5
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)
result <- naive(jpMat)
print(result)

Example output

$rating
[1] 3.750000 4.500000 2.666667 3.250000

$ranking
[1] 2 1 4 3

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

Related to naive in raincin...