Description Usage Arguments Value Examples
View source: R/SphereKaji20140527.R
Generate random K statistic values for test vectors under null hypothesis
1 | runitstat(test.vecs, rmvn, n)
|
test.vecs |
A number-of-test rows x df columns matrix of test vectos, each row of which is a test vector |
rmvn |
Optional A matrix of random unit vectors |
n |
number of random unit vectors |
A number-of-unit-vector rows x number-of-test columns matrix of K statistic values
1 2 3 4 5 6 7 8 | A <- matrix(c(10,20,30,40,50,60),2,3)
t.sphere <- table.sphere(A)
t1 <- t2 <- t3 <- matrix(c(1,0,0,0,0,0),byrow=TRUE,2,3)
t2[1,2] <- 0.5
t3[1,2] <- 1
tests <- list(t1,t2,t3)
test.vecs <- make.test.vecs(t.sphere,tests)
runitstat(test.vecs)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.