compareDistributions {babar}R Documentation

compareDistributions

Description

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

Usage

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

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

[Package babar version 1.0 Index]