meandiff_CI: Function to compute CI around the raw mean difference

View source: R/meandiff_CI.R

meandiff_CIR Documentation

Function to compute CI around the raw mean difference

Description

Function to compute CI around the raw mean difference

Usage

meandiff_CI(m1, m2, sd1, sd2, n1, n2, conf.level, var.equal, 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. Otherwise, the standard error is estimated based on unpooled variance.

alternative

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

Value

Returns raw mean difference, (1-alpha)% confidence interval around mean difference, standard error


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