Bayesian model for the ratio of observed to expected probability of features to be in common
Description
The function specifies a Bayesian model for the ratio of observed to expected probability of features to be in common. A multinomial distribution is specified on the probabilities of being significant in any combination of the experiments (e.g. if two experiments are considered, the probability of being significant in none, one and two experiments is specified) and a prior distribution is put on their parameters. The quantity of interest is the ratio of the probability that a feature is in common, to the probability that a feature is in common by chance, called R(h).
Usage
1 
Arguments
output.ratio 

iter 

dir 

conf 

Details
It returns an object of class list with the ratio R(h) for each threshold and its quantiles specified by conf. R(h) is significant if its CI does not include 1. We consider two rules for selecting the list of genes of interest: 1) hmax is the maximum of Median(R(h)) only for the subset of credibility intervals which do not include 1; 2) h2 is the largest threshold where the number of features called in common at least doubles the number of features in common under independence (where R(h) larger than 2).
The function returns also a plot of the credibility interval for each threshold. The same plot is also saved in the directory specified by the user.
Value
A matrix and a plot with the quantiles of R(h) identified by conf for each pvalue threshold.
Author(s)
Alberto Cassese, Marta Blangiardo
References
M.Blangiardo and S.Richardson (2007) Statistical tools for synthesizing lists of differentially expressed features in related experiments, Genome Biology, 8, R54.
Examples
1 2 3 4 