Description Usage Arguments Details Value Note Author(s) See Also Examples
View source: R/upperBoundNull.R
The data is assumed to arise from a mixture of two distributions, a symmetric null distribution with its mode close to zero, and an alternative distribution that is stochastically larger than the null. This function tries to pinpoint the minimum of data values that are more likely to arise from the alternative distribution, i.e. an upper bound for values following the null distribution.
1 | upperBoundNull(x, modeMethod = "shorth", limits = c(-1, 1), prob = 0.99, ...)
|
x |
numeric vector of data values |
modeMethod |
character string; which method to use for estimating the mode of the null distribution; see details |
limits |
numeric of length 2; data values within this range are used for estimating the mode of the null distribution |
prob |
quantile of the null distribution that will be used as an upper bound |
... |
additional arguments that are passed on to the function for mode estimation |
For estimating the mode of the null distribution, current options are
the function shorth
the function
half.range.mode
does not estimate the mode from the data, but sets it to 0
a single numeric value which is the estimated upper bound for the null distribution.
This way of estimating the null distribution is mentioned in the PhD thesis of Richard Bourgon.
Joern Toedling, based on suggestions by Richard Bourgon
1 2 3 4 5 6 | exDir <- system.file("exData",package="Ringo")
load(file.path(exDir,"exampleProbeAnno.rda"))
load(file.path(exDir,"exampleX.rda"))
smoothX <- computeRunningMedians(exampleX, probeAnno=exProbeAnno,
modColumn = "Cy5", allChr = "9", winHalfSize = 400)
apply(exprs(smoothX), 2, upperBoundNull)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.