| getLogMargLik | R Documentation |
Extract log marginal likelihood from a model, saved as the first
element of a BayesMfp object.
getLogMargLik(x, design=getDesignMatrix(x), nObs = nrow(design), dim = ncol(design))
x |
valid |
design |
(centered) design matrix |
nObs |
number of observations |
dim |
number of design matrix columns |
This function interfaces the C++ function logMargLik, and can
be used to compute the marginal likelihood of a model not saved in the
model list. But be careful to adjust the saved R^2 of the model, too,
and not only the powers! Therefore this function is internal only...
and is used e.g. in transformMfp.
Daniel Saban\'es Bov\'e
getLogPrior
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.