Skip to contents

This function allows to calculate the cohen's d and the critical d for a one samples t-test given the t-value, sample size, specifying the confidence level of the interval and the direction of the hypothesis.

Usage

crit_from_t_t1s(t = NULL, n, se = NULL, conf.level, hypothesis)

Arguments

t

the t value.

n

a number corresponding to the sample size.

se

a number corresponding to the standard error.

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.