count5_test: A permutation test for equal variance based on the maximum...

Description Usage Arguments Value Examples

View source: R/ex.R

Description

A permutation test for equal variance based on the maximum number of extreme points

Usage

1
count5_test(y, n1)

Arguments

y

the samples

n1

the length of the first sample

Value

1 for reject null hypothesis (equal variance), 0 for accept

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
## Not run: 
compute the typr-I error for the permutation test
n1=20;n2=30;m=500
a2 = mean(replicate(m, expr={ 
x1 = rnorm(n1);x2 = rnorm(n2)
y=c(x1,x2)
count5_test(y,n1)
}))

## End(Not run)

XixuHu/SC19090 documentation built on Jan. 2, 2020, 8:40 p.m.