PAMAlike: this function returns the log-likelihood of an observed...

Description Usage Arguments Value Examples

View source: R/PAMAlike.R

Description

this function returns the log-likelihood of an observed ranking list given the parameters.

Usage

1
PAMAlike(bsrkr, I, phi, smlgamma)

Arguments

bsrkr

It is a observed ranking list.

I

It is the true classification of entities. 0 denotes the corresponding entity is a background entity. The positive integer denotes the relative rankings of a relevant entity.

phi

It is a positive number. It is the common disperse parameter in Mallows model for all the rankers

smlgamma

A positive number. It is the quality parameter of the ranker. It is used to distinguish relative and background entities

Value

The lon-likelihood of barkr given I, phi and smlgamma

Examples

1
2
3
dat=t(PerMallows::rmm(10,1:20,0.5))
I=c(1:10,rep(0,10))
like=PAMAlike(bsrkr=dat[,1],I=I,phi=0.2,smlgamma=1)

PAMA documentation built on May 6, 2021, 5:09 p.m.