gausstest: Classical Gauss Test
Description
One and two sample Gauss test for equal mean of normal random variates
with known variance.
Usage
Gauss.test(x,y=NULL,mean=0,sd=1,alternative = c("two.sided", "less", "greater"))
Arguments
x
a numeric vector providing the first dataset
sd
the known standard deviation
alternative
the alternative to be used in the test
Value
A classical "htest"
object
data.nameThe name of the dataset as specified
methoda name for the test used
parameterthe mean and variance provided to the test
alternativean empty string
p.valueThe p.value computed for this test
Details
The Gauss test is in every Text-Book, but not in R, because it is nearly
never used. However it is included here for educational purposes.
Examples
Run this code# NOT RUN {
x <- rnorm(100)
y <- rnorm(100)
Gauss.test(x,y)
# }
Run the code above in your browser using DataLab