Computes and outputs a t-test for one test variable
compute_t_test(test_var, data, group_var, levels, var.equal, paired,
pooled_sd)
Test variable
a tibble
group variable (column name)
optional: a vector of length two specifying the two levels of the group variable.
a logical variable indicating whether to treat the two
variances as being equal. If TRUE
then the pooled variance is used to
estimate the variance otherwise the Welch (or Satterthwaite) approximation
to the degrees of freedom is used. Defaults to TRUE
.
a logical indicating whether you want a paired t-test. Defaults
to FALSE
.
a logical indicating whether to use the pooled standard
deviation in the calculation of Cohen's d. Defaults to TRUE
.
a tibble