Learn R Programming

DAAG (version 0.37)

overlap.density: Overlapping Density Plots

Description

Densities for two independent samples are estimated and plotted.

Usage

overlap.density(x0, x1, ratio=c(0.05, 20), plotit=TRUE)

Arguments

x0
control group measurements
x1
treatment group measurements
ratio
the range within which the relative numbers of observations from the two groups are required to lie. [The relative numbers at any point are estimated from (density1*n1)/(density0*x0)]
plotit
If TRUE, a plot is produced

See Also

t.test

Examples

Run this code
data(two65)
attach(two65)
overlap.density(ambient,heated)
t.test(ambient,heated)

Run the code above in your browser using DataLab