ssmd: Strictly standardised mean difference (SSMD)

Description Usage Arguments Value Examples

View source: R/ssmd.R

Description

SSMD is a measure of effect size, defined at the mean divided by the standard deviation of a difference between two random values each from one of the two groups.

\frac{β = μ_a - μ_b}{√{σ_a^2 + σ_b^2 - σ_{ab}}}

Beta is defined as the ratio of mean to SD of the two groups.

Usage

1
ssmd(a, b, verbose = TRUE, ...)

Arguments

a

Vector

b

Vector

verbose

if TRUE will return a description of effect size

...

additional arguments to be passed to mean() or var()

Value

SSMD and effect description if verbose is TRUE

Examples

1
2
3
a <- rnorm(100, 1)
b <- rnorm(100, 10)
ssmd(a, b)

Swarchal/phenoDist documentation built on May 10, 2017, 3:36 p.m.