logml {bridgesampling} | R Documentation |
Log Marginal Likelihoods from Bridge Objects
Description
Generic function that returns log marginal likelihood from bridge objects. For objects of class "bridge_list"
, which contains multiple log marginal likelihoods, fun
is performed on the vector and its result returned.
Usage
logml(x, ...)
## S3 method for class 'bridge'
logml(x, ...)
## S3 method for class 'bridge_list'
logml(x, fun = median, ...)
Arguments
x |
Object of class |
... |
Further arguments passed to |
fun |
Function which returns a scalar value and is applied to the |
Value
scalar numeric
[Package bridgesampling version 1.1-2 Index]