Learn R Programming

tidycomm (version 0.0.1)

compute_t_test: Compute t-test

Description

Computes and outputs a t-test for one test variable

Usage

compute_t_test(test_var, data, group_var, levels, var.equal, paired,
  pooled_sd)

Arguments

test_var

Test variable

data
group_var

group variable (column name)

levels

optional: a vector of length two specifying the two levels of the group variable.

var.equal

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.

paired

a logical indicating whether you want a paired t-test. Defaults to FALSE.

pooled_sd

a logical indicating whether to use the pooled standard deviation in the calculation of Cohen's d. Defaults to TRUE.

Value

a tibble

See Also

Other t-test: cohens_d, t_test