Initialization method for probabilities

Share:

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")