cohen_CI: Function to compute CI around Cohen's effect size estimators

View source: R/cohen_CI.R

cohen_CIR Documentation

Function to compute CI around Cohen's effect size estimators

Description

Function to compute CI around Cohen's effect size estimators

Usage

cohen_CI(
  m1,
  m2,
  sd1,
  sd2,
  n1,
  n2,
  conf.level,
  var.equal,
  unbiased,
  alternative
)

Arguments

m1

the average score of the first group

m2

the average score of the second group

sd1

the standard deviation the first group

sd2

the standard deviation the second group

n1

the first sample size

n2

the second sample size

conf.level

confidence level of the interval

var.equal

a logical variable indicating whether to assume equality of population variances. If TRUE the pooled variance is used to estimate the standard error (= Cohen's d or Hedges' g). Otherwise, the square root of the non pooled average of both variance estimates is used to estimate the standard error (Cohen's d' or Hedges' g').

unbiased

a logical variable indicating whether to compute the biased or unbiased estimator. If TRUE, unbiased estimator is computed (Hedges' g or Hedges' g'). Otherwise, bias estimator is computed (Cohen's d or Cohen's d').

alternative

a character string specifying the alternative hypothesis, must be one of "two.sided" (default), "greater" or "less".

Value

Returns Cohen's estimators of effect size and (1-alpha)% confidence interval around it, standard error


mdelacre/deffectsize documentation built on June 15, 2022, 11:47 p.m.