post.var | R Documentation |
Returns posterior residual variance, deviance, or pseudo R-squared, according to the chosen prior structure
post.var(object, exact = FALSE, ...)
object |
A |
exact |
When |
... |
further arguments passed to or from other methods |
post.var
: Posterior residual variance as according to the prior
definitions contained in object
post.pr2
: A
pseudo-R-squared corresponding to unity minus posterior variance over
dependent variance.
deviance.bma
: returns the
deviance
of a bma
model as returned from
bms
.
deviance.zlm
: returns the
deviance
of a zlm
model.
bms
for creating bma
objects and priors,
zlm
object.
Check http://bms.zeugner.eu for additional help.
data(datafls) mm=bms(datafls[,1:10]) deviance(mm)/nrow(datafls) # is equivalent to post.var(mm) post.pr2(mm) # is equivalent to 1 - post.var(mm) / ( var(datafls[,1])*(1-1/nrow(datafls)) )
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.