Learn R Programming

babar (version 1.0)

compareDistributions: 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

versus the hypothesis that they have different means and variances

Examples

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

Run the code above in your browser using DataLab