wrapTTest.data.frame: Wrap t.test (difference in means by group).

View source: R/TTest.R

wrapTTest.data.frameR Documentation

Wrap t.test (difference in means by group).

Description

Wrap t.test (difference in means by group).

Usage

## S3 method for class 'data.frame'
wrapTTest(
  x,
  Column1Name,
  Column2Name,
  ...,
  y = NULL,
  alternative = c("two.sided", "less", "greater"),
  mu = 0,
  paired = FALSE,
  var.equal = FALSE,
  conf.level = 0.95,
  na.rm = FALSE
)

Arguments

x

data.frame

Column1Name

character column 1 name

Column2Name

character column 2 name

...

extra arguments passed to ttest

y

passed to t.test

alternative

passed to t.test

mu

passed to t.test

paired

passed to t.test

var.equal

passed to t.test

conf.level

passed to t.test

na.rm

logical, if TRUE remove NA values

Value

formatted string and fields

Examples


d <- data.frame(x=c(1,2,3,4,5,6,7,7),
                y=c(1,1,2,2,3,3,4,4))
render(wrapTTest(d,'x','y'),pLargeCutoff=1)
# confirm p not order depedent
render(wrapTTest(d,'y','x'),pLargeCutoff=1)


sigr documentation built on Aug. 20, 2023, 9:06 a.m.