View source: R/MixtureUpdatePosterior.R
MixtureUpdatePosterior | R Documentation |
This function re-computes posteriors for (one class of) parameters from posteriors obtained by FitAllShrink
and a new mixture prior
obtained by MixtureUpdatePrior
.
MixtureUpdatePosterior(fitall, updateoutput, fitall0=NULL, ncpus = 1, robustlarge=TRUE)
fitall |
A 2-component list object resulting from |
updateoutput |
A 2-component list object resulting from |
fitall0 |
An optional 2-component list object resulting from |
ncpus |
Integer. The number of cpus to use for parallel computations. |
robustlarge |
Boolean. Add a small proportion of flat Gaussian prior to robustify results for large effects. |
Rescaling of posteriors is used as described in Van de Wiel et al. (2012). About robustlarge
: in rare cases
the fitted prior may mismatch extreme effects. For that we weigh the continuous part of the prior with a very small proportion (0.001) of
a fairly flat prior (central gaussian with sd=5). This has almost no effect for most posteriors, but renders a better posterior for extreme effects.
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 |
Continuous component of the posterior (as matrix) |
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
MixtureUpdatePrior
. 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.
MixtureUpdatePrior
for finding the optimal mixture prior and FitAllShrink
for
fitting under standard parametric priors. In addition, see NonParaUpdatePosterior
for posteriors given a nonparametric prior.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.