var2.test: Hypothesis Test on Two Population Variances

Description Usage Arguments Value Examples

View source: R/ch11-fn.R

Description

Hypothesis Test on Two Independent Normal Population Variances

Usage

1
var2.test(s1, s2, n1, n2, alp = 0.05, side = "two", dig = 4)

Arguments

s1

Sample standard deviation of population1

s2

Sample standard deviation of population2

n1

Sample size of population1

n2

Sample size of population2

alp

Level of significance, Default: 0.05

side

Type of the alternative hypothesis, Default: 'two'

dig

Number of digits below the decimal point, Default: 4

Value

Test Statistic (F0) and the p-value (pv)

Examples

1
2
3
4
5
var2.test(s1=3.5, s2=5.8, n1=25, n2=34)

x = rnorm(20, 199, 4)
y = rnorm(25, 200, 2)
var2.test(sd(x), sd(y), length(x), length(y), side="up")

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