One and two sample Gauss test for equal mean of normal random variates with known variance.
Gauss.test(x,y=NULL,mean=0,sd=1,alternative = c("two.sided", "less", "greater"))
a numeric vector providing the first dataset
optional second dataset
the mean to compare with
the known standard deviation
the alternative to be used in the test
A classical "htest"
object
The name of the dataset as specified
a name for the test used
the mean and variance provided to the test
an empty string
The p.value computed for this test
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.
# NOT RUN {
x <- rnorm(100)
y <- rnorm(100)
Gauss.test(x,y)
# }
Run the code above in your browser using DataLab