Description Usage Arguments Value Author(s) References Examples
Estimator that implements a slightly altered version of the model of Scott and Berger (see references).
1 | nscottberger.est(x, y = NULL, scaled = F, ...)
|
x |
Input data matrix: features(rows) x samples (columns). See examples. |
y |
Optional input data matrix. |
scaled |
Logical. |
... |
Further arguments to pass to an internal function. |
A vector of length equal to the total number of features (i.e. proteins, genes,...).
Code: Corey M. Yanofsky, Zahra Montazeri, David R. Bickel and Marta Padilla (modifications)
Documentation: Alaa Ali and Marta Padilla
Montazeri, Z., Yanofsky, C. M., & Bickel, D. R. (2010). Shrinkage estimation of effect sizes as an alternative to hypothesis testing followed by estimation in high-dimensional biology: Applications to differential gene expression. Statistical Applications in Genetics and Molecular Biology, 9, 23.
James G. Scott and James O. Berger, "An exploration of aspects of Bayesian multiple testing", J. Stat. Plan. Inf., 136, 2133-2162, 2006
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | #simulate some data sets: matrices of log-abundance levels
nsam<-10 #number of individuals
nfeat<-40 #number of features (metabolites, genes,...)
diffs<-c(1:4) #features with differential log-abundance levels
lfc<-5 #differential quantity
# create data sets:
x <- matrix(runif(nfeat*nsam), nrow = nfeat, ncol = nsam) #case
y <- matrix(runif(nfeat*nsam), nrow = nfeat, ncol = nsam) #control
x[diffs,] <- x[diffs,] + lfc
# scottberger estimator: ----------
z1 <- nscottberger.est(x=x)
z2 <- nscottberger.est(x=x,y=y)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.