paired_t_test_d: Paired t.test with Cohen's d

View source: R/stat_tests.R

paired_t_test_dR Documentation

Paired t.test with Cohen's d

Description

This function takes two variables that are representing paired data and calculates a paired samples t.test. It then also calculates and prints Cohen's d as a measure of effect size and shows a clearer data label than the t.test function.

Usage

paired_t_test_d(data, x, y)

Arguments

data

A dataframe

x, y

Character strings indicating the names of the two variables

Value

Invisibly returns a list including the t.test() output and Cohen's D

Examples

paired_t_test_d(iris, "Sepal.Width", "Petal.Length")

LukasWallrich/timesaveR documentation built on Nov. 29, 2024, 4:47 a.m.