var1Test function

One Sample Test of Normal Variance

One Sample Test of Normal Variance

Give tests and confidence intervals on the variance of a sample from a normal distribution.

var1Test(x, nullVar = 1, alternative = c("two.sided", "less", "greater"), conf.level = 0.95)

Arguments

  • x: numeric vector
  • nullVar: null variance, or variance on the boundary between the null and alternative hypotheses
  • alternative: a character string specifying the alternative hypothesis, must be one of "two.sided" (default), "greater" or "less". You can specify just the initial letter.
  • conf.level: confidence level of the interval

Details

Tests derived from normality assumption.

Returns

A list of class 'htest' (use str to see elements)

References

Dudewicz, EJ and Mishra, SN (1988) Modern Mathematical Statistics. Wiley. (Section 9.6).

Author(s)

Michael P. Fay

Examples

var1Test(rnorm(25))
  • Maintainer: Michael P. Fay
  • License: GPL-3
  • Last published: 2023-08-24

Useful links