t_test: Independent samples t-test

Description Usage Arguments Value Examples

View source: R/statistics-utils.R

Description

A wrapper to stats::t.test() with var.equal = TRUE.

Usage

1

Arguments

formula

A two sided formula with one variable on either side, e.g. y ~ x, where the left hand side, dependent, variable is a numeric variable in data and the right hand side, independent, variable is a categorical or factor variable in data, and which has only two distinct values.

data

A data frame that contains the dependent and independent variables.

Value

A list with class "htest" as returned by stats::t.test().

Examples

1
2
t_test(trustworthy ~ face_sex, data = faithfulfaces)
  

psyntur documentation built on Sept. 15, 2021, 5:07 p.m.