fitBetaUniformMixtureDistribution | R Documentation |
Following the approach of Morris & Pounds, a distribution of P-values can be decomposed as a mixture of two beta distributions, one with shape paramter (α) of 1 - modelling noise under the null-hypothesis - and another with a variable (a), modelling signal. One can view this as modeling P-values as a random process where P ~ (1-λ)β(a,1) + λβ(1,1)
fitBetaUniformMixtureDistribution(pValues, nStarts = 10L) ## S4 method for signature 'Pvalues,ScalarInteger' fitBetaUniformMixtureDistribution(pValues, nStarts = 10L) ## S4 method for signature 'numeric,ANY' fitBetaUniformMixtureDistribution(pValues, nStarts = 10L) ## S4 method for signature 'Pvalues,numeric' fitBetaUniformMixtureDistribution(pValues, nStarts = 10L)
pValues |
A numeric vector of P-values for which to perform Beta-Uniform decomposition |
nStarts |
How many repeats of the fitting routine should the routine run before the best LLH is picked? The default is 10, but in some cases (when there is no 'clean' P-value distribution), it might be worth running for more iterations. |
Analagous to BioNet::fitBumModel.
A BetaUniformModel object, detailign the fit
fitBetaUniformMixtureDistribution,Pvalues,ScalarInteger-method
: Typed method for dispatch
fitBetaUniformMixtureDistribution,numeric,ANY-method
: Adapter method, attempts to convert numeric values to Pvalues
fitBetaUniformMixtureDistribution,Pvalues,numeric-method
: fitting using nStarts defined
by the user as numeric
Pounds, S., & Morris, S. W. (2003). Estimating the occurrence of false positives and false negatives in microarray studies by approximating and partitioning the empirical distribution of p-values. Bioinformatics
betaUniformScore BioNet::fitBumModel
library(ggplot2) data(siTAZdiffex_HFL1_diffexDT) siTAZ1_BetaUniformMod <- fitBetaUniformMixtureDistribution(siTAZdiffex_HFL1_diffexDT$siTAZ1_pValue) siTAZ1_BetaUniformMod plot(siTAZ1_BetaUniformMod) # Produce some diagnostic plots betaUnifScored <- betaUniformScore(siTAZ1_BetaUniformMod, FDR = 0.05) qplot(betaUnifScored)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.