paired.ttest: Paired T-Test

View source: R/ttest.R

paired.ttestR Documentation

Paired T-Test

Description

This function provides a wrapper for rstatix::t_test for the dependent variables 'dvs' including their effect sizes

Usage

paired.ttest(
  data,
  dvs,
  iv,
  alternative = "two.sided",
  var.equal = FALSE,
  hedges.correction = TRUE,
  dv.var = NULL,
  as.list = FALSE
)

Arguments

data

a data.frame or list containing the data

dvs

numeric columns with the dependent variables to be used in the independent t-test

iv

independent (between) variable in which perform the t-test

alternative

a character string specifying the alternative hypothesis, must be one of "two.sided" (default), "greater" or "less". You can specify just the initial letter.

var.equal

a logical variable indicating whether to treat the two variances as being equal. If TRUE then the pooled variance is used to estimate the variance otherwise the Welch (or Satterthwaite) approximation to the degrees of freedom is used.

hedges.correction

logical value indicating whether apply the Hedges correction

dv.var

column with the information to classify observations

as.list

logical value indicating that the result should be returned as list indicating by separate the t_test and cohens_d effect size

Value

A data.frame containing the results for the independent t-test and their effect sizes


geiser/rshinystatistics documentation built on Feb. 18, 2024, 6:07 p.m.