View source: R/BFUpdatePosterior.R
BFUpdatePosterior | R Documentation |
Updates posteriors from output by ShrinkSeq
or ShrinkGauss
.
Useful for testing nested models or for simply extracting posteriors for a particular parameter after applying
FitAllShrink
.
BFUpdatePosterior(fitall, updateoutput,fitall0=NULL, modus="fixed", shrinkpara=NULL, shrinklc=NULL, ncpus=1,only0=FALSE)
fitall |
A 2-component list object resulting from |
fitall0 |
An optional 2-component list object resulting from |
updateoutput |
A list object resulting from |
modus |
Character string. Either |
shrinkpara |
Character or character vector. Name(s) of the variable(s) for which the posterior is desired. Corresponding variable can be a factor. |
shrinklc |
Character string. Name of the linear combination for which the posterior is desired. |
ncpus |
Integer. The number of cpus to use for parallel computations. |
only0 |
Boolean. If |
This function is mostly useful for testing nested models that differ by more than one variable.
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. Zero if |
loglik |
Marginal log-likelihood |
Mark A. van de Wiel
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.