Learn R Programming

BayesFactor (version 0.9.12-4.7)

as.BFprobability: Function to coerce objects to the BFprobability class

Description

This function coerces objects to the BFprobability class

Usage

as.BFprobability(object, normalize = NULL, lognormalize = NULL)

Value

An object of class BFprobability

Arguments

object

an object of appropriate class (BFodds)

normalize

the sum of the probabilities for all models in the object (1 by default)

lognormalize

alternative to normalize; the logarithm of the normalization constant (0 by default)

Author

Richard D. Morey (richarddmorey@gmail.com)

Details

Function to coerce objects to the BFprobability class

Currently, this function will only work with objects of class BFOdds.