wrapTTest.htest | R Documentation |
Wrap t.test (difference in means by group).
## S3 method for class 'htest'
wrapTTest(x, ...)
x |
t.test result |
... |
extra arguments (not used) |
formatted string and fields
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.