no_overlap: Check for CI overlap

View source: R/no_overlap.R

no_overlapR Documentation

Check for CI overlap

Description

The no_overlap() function is used to determine if two numeric vectors have overlapping confidence intervals of their population means using a desired level of significance. It takes as input two vectors and the level of significance and returns a Boolean value TRUE if no overlap exists and FALSE if overlap exists.

Usage

no_overlap(x, y, alpha)

Arguments

x

vector x

y

vector y

alpha

level of significance alpha

Value

indices where no confidence interval overlap exists

Examples

vecx <- rnorm(100)
vecy <- rnorm(100)
no_overlap(vecx, vecy, 0.05)


pgrugwiro/variant documentation built on Aug. 2, 2022, 12:08 p.m.