Learn R Programming

sigr (version 1.1.5)

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

Description

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

Usage

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

Value

formatted string and fields

Arguments

x

t.test result

...

extra arguments (not used)

Examples

Run this code

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)

Run the code above in your browser using DataLab