ttest_interpret: T-Test with Plain-English Interpretation

View source: R/ttest_interpret.R

ttest_interpretR Documentation

T-Test with Plain-English Interpretation

Description

T-Test with Plain-English Interpretation

Usage

ttest_interpret(
  x,
  y = NULL,
  mu = 0,
  paired = FALSE,
  conf.level = 0.95,
  var_name = "Variable"
)

Arguments

x

A numeric vector (group 1, or the only group for one-sample)

y

A numeric vector (group 2, for independent samples). Default NULL.

mu

Hypothesised mean for one-sample t-test. Default 0.

paired

Logical. TRUE for paired t-test. Default FALSE.

conf.level

Confidence level. Default 0.95.

var_name

Optional label for the report. Default "Variable"

Value

An object of class statease_ttest containing test results and interpretation. Use print() to display the formatted report.

Examples

result <- ttest_interpret(c(23,45,12,67,34), c(19,38,22,51,29))
print(result)

statease documentation built on June 7, 2026, 5:06 p.m.