compareStones: compareStones

Description Usage Arguments Value Examples

Description

A function to extract the marginal likelihood from the stepping stone sampler output of two BayesTraits runs, and work out the (NOT log) Bayes Factors.

Usage

1
compareStones(comp, simp)

Arguments

comp

The name of the stepping stones log file of the more complex of the two BayesTraits models.

simp

The name of the stepping stone log file of the more simple of the two BayesTraits models.

Value

The Bayes factor of the comparison between the more complex and the more simple model. This is not logged for saftey (e.g. in the case of a negative difference between complex and simple model).

Examples

1
compareStones("complex.model.stones.log.txt", "simple.model.stones.log.txt")

hferg/bayestraitr documentation built on May 28, 2019, 8:55 p.m.