Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

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

y

optional second dataset

mean

the mean to compare with

sd

the known standard deviation

alternative

the alternative to be used in the 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.

Value

A classical "htest" object

data.name

The name of the dataset as specified

method

a name for the test used

parameter

the mean and variance provided to the test

alternative

an empty string

p.value

The p.value computed for this test

Author(s)

K.Gerald v.d. Boogaart http://www.stat.boogaart.de

See Also

Examples

x <- rnorm(100)
y <- rnorm(100)
Gauss.test(x,y)

compositions

Compositional Data Analysis

v2.0-1
GPL (>= 2)
Authors
K. Gerald van den Boogaart <boogaart@hzdr.de>, Raimon Tolosana-Delgado, Matevz Bren
Initial release
2021-01-08

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.