asymptotic_test: Asymptotic test for the equality of coefficients of variation...

View source: R/functions.R

asymptotic_testR Documentation

Asymptotic test for the equality of coefficients of variation from k populations, using measurement data

Description

Test for k samples (k sample populations with unequal sized) from Feltz CJ, Miller GE (1996) An asymptotic test for the equality of coefficients of variation from k population. Stat Med 15:647–658

Usage

asymptotic_test(x, y, seed)

Arguments

x

a numeric vector containing individual measurement values

y

a vector of any type containing a grouping variable

seed

optional, an integer that is the starting point used in the generation of a sequence of random numbers. Include a seed if you want reproducible output.

Value

a list with the test statistic and p-value

Examples


 y <- unlist(lapply(letters[1:5], function(i) rep(i, 20)))
 x <- rnorm(100)

 asymptotic_test(x, y)


benmarwick/cvequality documentation built on Feb. 23, 2023, 9:58 a.m.