var2.test: Hypothesis Test on Two Population Variances

View source: R/ch11-fn.R

var2.testR Documentation

Hypothesis Test on Two Population Variances

Description

Hypothesis Test on Two Independent Normal Population Variances

Usage

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

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")

adoocavo/Rstat_M1 documentation built on March 19, 2022, 3:34 a.m.