CLES: Common Language Effect Size (CLES)

Description Usage Arguments Value Examples

View source: R/CLES.R

Description

CLES calculates the probability that a random observation from Group B is higher/larger than a random observation from Group A. Groups are considered independent.

Usage

1
2
3
4
5
6
7
8
9
CLES(
  group_a,
  group_b,
  SESOI_lower = 0,
  SESOI_upper = 0,
  method = "algebraic",
  count_equivalent = "ignore",
  na.rm = FALSE
)

Arguments

group_a

Numeric vector. This group represents baseline/control, observed variable, Pre-test in the paired design, or "practical" measure

group_b

Numeric vector. This group represents experimental, predicted variable, Post-test in the paired design, or "criterion" measure

SESOI_lower

Lower smallest effect size of interest threshold

SESOI_upper

Upper smallest effect size of interest threshold

method

Select "brute-force" or "algebraic" method to calculate CLES. Default is "algebraic"

count_equivalent

How should equivalent differences be counted? Ignored, counted as higher or lower difference. Default is "ignore". Other options are "higher" and "lower"

na.rm

Should NAs be removed? Default is FALSE

Value

Numeric

Examples

1
2
3
4
CLES(
  rnorm(n = 50, mean = 100, sd = 10),
  rnorm(n = 40, mean = 98, sd = 8)
)

mladenjovanovic/bmbstats documentation built on Aug. 5, 2020, 4:20 p.m.