View source: R/NonParaUpdatePosterior.R
NonParaUpdatePosterior | R Documentation |
This function re-computes posteriors for (one class of) parameters from posteriors obtained by FitAllShrink
and a new nonparametric prior
obtained by NonParaUpdatePrior
.
NonParaUpdatePosterior(fitall, updateoutput, fitall0=NULL, ncpus = 2)
fitall |
A 2-component list object resulting from |
updateoutput |
A list object resulting from |
fitall0 |
An optional 2-component list object resulting from |
ncpus |
Integer. The number of cpus to use for parallel computations. |
Rescaling of posteriors is used as described in Van de Wiel et al. (2012).
A list object with the same number of components as the first component of fitall
(number of fits),
each containing 3-component lists which contain
postbetanon0 |
List of posteriors (one for each parameter/contrast involved) |
postbeta0 |
Point mass (often zero) mixture proportion |
loglik |
Marginal log-likelihood |
The resulting posteriors are for the main parameter or contrasts of interest only, which should be indicated in the
shrinkpara
and shrinklc
option in
NonParaUpdatePrior
. Posteriors of other parameters do not alter with respect to those in fitall
.
Mark A. van de Wiel
Van de Wiel MA, Leday GGR, Pardo L, Rue H, Van der Vaart AW, Van Wieringen WN (2012). Bayesian analysis of RNA sequencing data by estimating multiple shrinkage priors. Biostatistics.
NonParaUpdatePrior
for finding the optimal mixture prior and FitAllShrink
for
fitting under standard parametric priors. In addition, see MixtureUpdatePosterior
for posteriors given a parametric mixture prior.
#See ShrinkSeq, ShrinkGauss and CombinePosteriors
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.