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

View source: R/TTest.R

wrapTTest.htestR Documentation

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

Description

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

Usage

## S3 method for class 'htest'
wrapTTest(x, ...)

Arguments

x

t.test result

...

extra arguments (not used)

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))
tt <- t.test(d$x,d$y)
render(wrapTTest(tt),pLargeCutoff=1)
# confirm not rescaling, as a correlation test would
render(wrapTTest(t.test(d$x,2*d$y)),pLargeCutoff=1)


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