Skip to contents

This function allows to calculate the cohen's d and the critical d for a one samples t-test given the mean, the variance and the sample numerosity, specifying the standard error, degrees of freedom, confidence level of the interval and the direction of the hypothesis.

Usage

crit_from_data_t1s(m, s, n, se = NULL, df = NULL, conf.level, hypothesis)

Arguments

m

mean of the sample.

s

a number corresponding to the sample standard deviatio

n

a number corresponding to the sample size.

se

a number corresponding to the standard error.

df

degrees of freedom.

conf.level

confidence level of the interval.

hypothesis

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

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, 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.