init.p: Initialization method for probabilities

Description Usage Arguments Value Author(s) References Examples

Description

Initialization method for probabilities

Usage

1
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

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

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
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")

Example output

      [,1] [,2] [,3] [,4] [,5] [,6]
 [1,]  0.1  0.1  0.1  0.1  0.1  0.5
 [2,]  0.1  0.1  0.1  0.1  0.1  0.5
 [3,]  0.1  0.1  0.1  0.1  0.1  0.5
 [4,]  0.1  0.1  0.1  0.1  0.1  0.5
 [5,]  0.1  0.1  0.1  0.1  0.1  0.5
 [6,]  0.1  0.1  0.1  0.1  0.1  0.5
 [7,]  0.1  0.1  0.1  0.1  0.1  0.5
 [8,]  0.1  0.1  0.1  0.1  0.1  0.5
 [9,]  0.1  0.1  0.1  0.1  0.1  0.5
[10,]  0.1  0.1  0.1  0.1  0.1  0.5

TopKLists documentation built on May 2, 2019, 4:41 p.m.