Skip to contents

This function allows to calculate the cohen's d and the critical d given the mean of the two groups, the standard deviation of the means and sample size of the two groups, specifying the confidence level of the interval, the direction of the hypothesis, the standard error, degrees of freedom and the variance parameter.

Usage

crit_from_data_t2s(
  m1,
  m2,
  sd1,
  sd2,
  n1,
  n2,
  conf.level,
  hypothesis,
  se = NULL,
  df = NULL,
  var.equal = FALSE
)

Arguments

m1

a number representing the mean of group 1.

m2

a number representing the mean of group 2.

sd1

a number representing the standard deviation of group 1.

sd2

a number representing the standard deviation of group 2.

n1

a number corresponding to the sample size of group 1.

n2

a number corresponding to the sample size of group 2.

conf.level

confidence level of the interval.

hypothesis

a character string indicating the alternative hypothesis ("less", "greater" or "two.tailed").

se

a number corresponding to the standard error.

df

degrees of freedom.

var.equal

a logical variable indicating whether to treat the two variances as being equal.

Value

the output returns a d which is the Cohen's d, the critical d which is the minimum value for which to get a significant result with a given sample size, the bc is the numerator of the formula from which the d is calculated, df are the degrees of freedom, and se is the standard error.