vtest: F-Test for the ratio of two groups' variances

View source: R/vtest.R

vtestR Documentation

F-Test for the ratio of two groups' variances

Description

F-test for the ratio of two groups' variances. This is similar to var.test except using the summarized input.

Usage

  vtest(v1, n1, v0, n0, ratio=1, conf.level=0.95)

Arguments

v1

sample variance of the first (test, active, experimental) group

n1

sample size of the first group

v0

sample variance of the second (reference, control, placebo) group

n0

sample size of the second group

ratio

value for the ratio of variances under null hypothesis

conf.level

confidence level

Details

For the confidence interval of one group, use UNIV function.

Value

The output format is very similar to var.test.

Author(s)

Kyun-Seop Bae k@acr.kr

Examples

  vtest(10.5^2, 5190, 8.9^2, 3529) # NEJM 388;15 p1386
  vtest(2.3^2, 13, 1.5^2, 11, conf.level=0.9) # Red book p240

sasLM documentation built on Oct. 2, 2024, 9:06 a.m.