paired_t_test: Paired samples t-test

View source: R/statistics-utils.R

paired_t_testR Documentation

Paired samples t-test

Description

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

Usage

paired_t_test(y1, y2, data, ...)

Arguments

y1

A numeric vector of observations

y2

A numeric vector of observations, with each value of y2 is assumed to be paired, such as by repeated measures, the corresponding value of y1.

data

A data frame with y1 and y2 as values.

...

Additional arguments passed to stats::t.test().

Value

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

Examples

paired_t_test(y1, y2, data = pairedsleep)

mark-andrews/psyntur documentation built on Nov. 18, 2024, 7:17 a.m.