Description Usage Arguments Value Author(s) Examples
Compare two sets of normally distributed samples using nested sampling, to determine whether they have the same mean and variance.
1 | compareDistributions(data.first, data.second)
|
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 |
Bayes factor for the hypothesis that the distributions have the same mean and variance versus the hypothesis that they have different means and variances
Lydia Rickett, Matthew Hartley, Richard Morris and Nick Pullen
1 2 3 | data.a <- rnorm(10, 1, 1)
data.b <- rnorm(10, 5, 1)
compareDistributions(data.a, data.b)
|
[1] -17.44072
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.