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

Description Usage Arguments Value Examples

View source: R/functions.R

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

1
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

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

 asymptotic_test(x, y)

benmarwick/cvequality documentation built on Nov. 7, 2019, 10:37 a.m.