Description Details Author(s) See Also Examples
A package that performs exact K sample permutation test of data locations
Package: | treeperm |
Type: | Package |
Version: | 1.6 |
Date: | 2015-04-22 |
License: | GPL-2 |
An implementation of permutation tests in R, supporting both exact and asymptotic K sample test of data locations. The p value of exact tests is found using tree algorithms. Tree algorithms treat permutations of input data as tree nodes and perform constraint depth-first searches for permutations that fall into the critical region of a test systematically. Pruning of tree search and optimisations at C level enable exact tests for certain large data sets.
Qiao Kang
Maintainer: Qiao <qk@st-andrews.ac.uk>
Permutation KPermutation plot.treeperm treeperm
1 2 3 4 5 6 7 8 9 10 | value<-c(0,190,0,0,10,0,0,0,0,0,0,110,0,0,52,0,8,0,50,0,0,137,965,110)
label<-as.factor(c(1,1,1,2,2,2,1,1,1,2,2,2,1,1,1,2,2,2,1,1,1,2,2,2))
data<-data.frame(label,value)
exact<-treeperm(value~label,frame=data,type="exact")
exact
summary(exact)
approximate<-treeperm(value~label,frame=data,type="approximate",size=999)
approximate
summary(approximate)
plot(exact,size=999)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.