gl.unequal {DTK} | R Documentation |
Produces a vector of samples of unequal sizes. Useful when observations are already sorted into groups by levels.
gl.unequal(n = "number of levels", k = "numeric vector of sample sizes")
n |
Scalar determining the number of levels. |
k |
Numeric vector specifying the sample size at each level. |
Produces a factored vector.
Be sure that you precisely specify the above arguments to correspond to your observation vector.
Matthew K. Lau, Department of Biological Sciences, Northern Arizona University, AZ
x=runif(54,0,100) f<-gl.unequal(n=5,k=c(10,9,10,15,10)) DTK.result<-DTK.test(x=x,f=f,a=0.05) DTK.result DTK.plot(DTK.result)