init.p {TopKLists} | R Documentation |
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 |
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
Author(s)
Jie Ding <jding@jimmy.harvard.edu>
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
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")
[Package TopKLists version 1.0.8 Index]