bayes_factor: Compute the Bayes factor between two models.

Description Usage Arguments Details Value

Description

Compute the Bayes factor between two models.

Usage

1
bayes_factor(samples1, samples2, ...)

Arguments

samples1

CoalHMM MCMC samples from the first model.

samples2

CoalHMM MCMC samples from the second model.

Details

Computes the model likelihood for two different models and returns the Bayes factor comparing the two models.

Value

Bayes factor P(D | M1) / P(D | M2).


mailund/coalhmm-analysis documentation built on May 21, 2019, 11:06 a.m.