var1.test: Hypothesis Test for a Variance

Description Usage Arguments Value Examples

View source: R/ch10-fn.R

Description

Hypothesis Test for a Population Variance

Usage

1
var1.test(x, n, var0, alp = 0.05, side = "two", dig = 4)

Arguments

x

Data vector (or sample variance)

n

Sample size (necessary when the sample variance is given)

var0

Population variance value under the null hypothesis

alp

Level of significance, Default: 0.05

side

Type of the alternative hypothesis ("up", "low", "two"), Default: 'two'

dig

Number of digits below the decimal point, Default: 4

Value

None.

Examples

1
2
3
4
var1.test(x=1.24, n=25, var0=0.8, side="up")

x = c(20.0, 21.5, 20.9, 19.8, 22.5, 20.3, 23.6, 18.0, 23.3, 17.8)
var1.test(x=x, var0=2, side="two")

tjssu/Rstat documentation built on Aug. 8, 2020, 12:38 p.m.