rxTTest: Function to carry out a student's t test on an xdf file

Description Usage Arguments See Also Examples

Description

Function to carry out a student's t test on an xdf file

Usage

1
2
rxTTest(formula, data, alternative = c("two.sided", "less", "greater"),
  mu = 0, var.equal = FALSE, conf.level = 0.95, ...)

Arguments

formula

???

data

???

alternative

???

mu

???

var.equal

???

conf.level

???

...

???

See Also

Other Modelling functions: rxKS.rxLorenz

Examples

 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)

RevoEnhancements/RevoEnhancements documentation built on May 9, 2019, 9:46 a.m.