Description Usage Arguments Value Author(s) References See Also Examples
View source: R/entropyShrink.R
Computing the James-Stein Shrinkage Entropy Estimate of cellCounts
.
1 | entropyShrink(cellCounts, unit = unit, shrinkageTarget = shrinkageTarget)
|
cellCounts |
an integer vector (or matrix) representing the number of times each particular count is obtained. |
unit |
the unit in which entropy is measured. One of |
shrinkageTarget |
shrinkage target frequencies. If not specified (default) it is estimated in a James-Stein-type fashion (uniform distribution). |
The entropyShrink
function returns the value of the entropy of that gene
H(X)
(or pair of genes H(X,Y)
).
Luciano Garofano lucianogarofano88@gmail.com, Stefano Maria Pagnotta, Michele Ceccarelli
James W., Stein C. (1961). Estimation with Quadratic Loss. Proceedings of the Fourth Berkeley Symposium on Mathematical Statistics and Probability, vol. 1 pp. 361-379.
entropyML,
entropyMM, entropyBayes,
entropyCS
1 2 3 4 | simData <- simulatedData(p = 50, n = 100, mu = 100, sigma = 0.25,
ppower = 0.73, noise = FALSE)
cellCounts <- table(simData$counts[1, ])
eShrink <- entropyShrink(cellCounts, unit = "nat", shrinkageTarget = NULL)
|
Loading required package: parallel
Loading required package: parmigene
Loading required package: GenKern
Loading required package: KernSmooth
KernSmooth 2.23 loaded
Copyright M. P. Wand 1997-2009
Loading required package: igraph
Attaching package: 'igraph'
The following objects are masked from 'package:stats':
decompose, spectrum
The following object is masked from 'package:base':
union
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.