cohend: Compute Cohen's d

Description Usage Arguments Details Value

View source: R/main.R

Description

Calculates Cohen's d, a measure of effect size as well as confidence interval bounds.

Usage

1
cohend(diff, ns, sds, conf = 0.95)

Arguments

diff

Numeric difference value

ns

Numeric vector containing the sample sizes of the two groups

sds

Numeris vector containing the sample standard deviations of the two groups (at the point of interest if taken on functional data).

conf

Numeric value giving the desired confidence level.

Details

Arguments are given in vector form so as to be more amenable to the structure of the package output. Confidence interval calculation comes from Hedge and Olkin (2014).

Value

A vector of length 3 containing the lower bound, the effect size, and the upper bound in that order.


wzhorton/bayesFDA documentation built on Dec. 23, 2021, 6:15 p.m.