Learn R Programming

TopKLists (version 1.0.2)

init.p: Initialization method for probabilities

Description

Initialization method for probabilities

Usage

init.p(topK, n, k, init.m = "p", init.w = 0)

Arguments

topK
A list of input lists, with items coded from 1 to n
n
Total number of items
k
Length of target list
init.m
Initialization method, "p" point mass, "s" smooth, "cp" point mass using composite ranks, "cs" smooth using composite ranks
init.w
initialization weight

Value

  • A probability matrix

References

Lin, S., Ding, J. (2009) Integration of Ranked Lists via Cross Entropy Monte Carlo with Applications to mRNA and microRNA Studies. Biometrics 65, 9-18.

Examples

Run this code
set.seed(1234)

rank.pool <- 1:10
a <- sample(rank.pool, 10)
b <- sample(rank.pool, 10)
c <- sample(rank.pool, 10)
rlist <- list(a, b, c)


init.p(rlist, length(unique(unlist(rlist))), 5, "cp")

Run the code above in your browser using DataLab