pseudocount: Add pseudocounts to a paired comparison matrix

Description Usage Arguments Details Value See Also Examples

View source: R/BTutilities.R

Description

Allows fitting BradleyTerry() models with parameters equal to damped Scroogefactor()s.

Usage

1
pseudocount(X, alpha = 0.85)

Arguments

X

a square matrix of paired comparison data

alpha

a damping factor between 0 and 1

Details

Eigenvector estimators can be used to compute Bradley–Terry scores. But a damped PageRank uses a modified probability transition matrix dependent on a parameter, alpha.

Value

a matrix in the same form as X, with pseudocounts added

See Also

BradleyTerry()

Other Bradley-Terry model utility functions: BradleyTerry, hessianBT, loglikelihood, vcovBT

Examples

1
2
3
4
SF <- Scroogefactor(citations, alpha = 0.85)
citations_pseudo <- pseudocount(citations)
BT_pseudo <- BTscores(citations_pseudo)
plot(SF, BT_pseudo); abline(0, 1)

Selbosh/scrooge documentation built on May 5, 2019, 8 p.m.