## Not run:
# ### Examples
# # Number of permutations
# .mchoose(1:3) # or choose(sum(1:3), 1) * choose(sum(2:3), 2)
#
# # Number of permutations for multiple groups
# .nPermsG(1:3, c(1, 1, 2))
#
# # Number of permutations from the designmatrix
# D.full<-t(matrix(c(1:9, 1:3), 3, 4))
# model.dat<-matrix(c(1,0,0,1,0,1,0,0), 4, 2)
# colnames(model.dat)<-c("A", "B")
# formula.full<-~A+B
# .nPerms(D.full, model.dat, formula.full)
#
# # All permutations for the multiple-group case
# .allpermsG(c(2, 1, 2), c(1, 1, 2))
#
# # All permutations for the continuos case
# .allperms(1:3)
# ## End(Not run)
Run the code above in your browser using DataLab