compareDistributions: compareDistributions

Description Usage Arguments Value Author(s) Examples

Description

Compare two sets of normally distributed samples using nested sampling, to determine whether they have the same mean and variance.

Usage

1
compareDistributions(data.first, data.second)

Arguments

data.first

Samples from the first distriubtion, as a vector of normally distributed values

data.second

Samples from the second distribution as a vector of normally distributed values

Value

Bayes factor for the hypothesis that the distributions have the same mean and variance versus the hypothesis that they have different means and variances

Author(s)

Lydia Rickett, Matthew Hartley, Richard Morris and Nick Pullen

Examples

1
2
3
data.a <- rnorm(10, 1, 1)
data.b <- rnorm(10, 5, 1)
compareDistributions(data.a, data.b)

Example output

[1] -17.44072

babar documentation built on May 1, 2019, 10:18 p.m.