Description Usage Arguments See Also Examples
Function to carry out a student's t test on an xdf file
1 2 |
formula |
??? |
data |
??? |
alternative |
??? |
mu |
??? |
var.equal |
??? |
conf.level |
??? |
... |
??? |
Other Modelling functions: rxKS.rxLorenz
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 | # Generate Data and test differences
library(RevoScaleR)
xdfFile <- "myTTestFile.xdf"
x <- data.frame(x = rnorm(1000, mean = -1, sd = 1), y = rnorm(1000, mean = 6, sd = 3), group = factor(rbinom(1000, 1, .6)))
rxDataStep(inData = x, outFile = xdfFile, overwrite = TRUE)
# One-Sample t-test
t.test(x$x)
rxTTest(~ x, data = xdfFile)
# Two-Sample t-test
t.test(x$x, x$y)
rxTTest(~ x + y, data = xdfFile)
# Grouped Two-Sample t-test
t.test(x ~ group, data = x)
rxTTest(x ~ group, data = xdfFile)
# Paired t-test
t.test(x$x, x$y, paired = TRUE)
rxTTest(~ I(x - y), data = xdfFile)
# Grouped Two-Sample Paired t-test
# Not available in t.test()
rxTTest(I(x - y) ~ group, data = xdfFile)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.