t_var_test: Independent sample t-test with test for equal variance

View source: R/tests.R

t_var_testR Documentation

Independent sample t-test with test for equal variance

Description

t_var_test tests for equal variance based on var.test and calls t.test, setting the option var.equal accordingly.

Usage

t_var_test(data, formula, cutoff = 0.05)

Arguments

data

Tibble or data_frame.

formula

Formula object with dependent and independent variable.

cutoff

is significance threshold for equal variances.

Value

A list from t.test

Examples

t_var_test(mtcars, wt ~ am)
# may be used in pipes:
mtcars |> t_var_test(wt ~ am)

wrappedtools documentation built on Oct. 10, 2024, 5:07 p.m.