permcont | R Documentation |
Return a random permutation of a contingency table n rows x 2 columns keeping the marginal totals
permcont(Table)
Table |
a contingency table |
The contingency table is split in a two colums table of 0/1 categories, sampled and re-organised with the function table()
A matrix with the permuted values
tab<-cbind(n1=c(10,12,8,7,5),n2=c(4,5,8,10,12))
tab
permcont(tab)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.