Obtain the Number of Possible Peumuations from a Random Assignment Declaration

obtain_num_permutations(declaration)

declaration | A random assignment declaration, created by |
---|

a scalar

# complete declaration <- declare_ra(N = 4) perms <- obtain_permutation_matrix(declaration) dim(perms)#> [1] 4 6obtain_num_permutations(declaration)#> [1] 6# blocked blocks <- c("A", "A", "B", "B", "C", "C", "C") declaration <- declare_ra(blocks = blocks) perms <- obtain_permutation_matrix(declaration) dim(perms)#> [1] 7 24obtain_num_permutations(declaration)#> [1] 24# clustered clusters <- c("A", "B", "A", "B", "C", "C", "C") declaration <- declare_ra(clusters = clusters) perms <- obtain_permutation_matrix(declaration) dim(perms)#> [1] 7 6obtain_num_permutations(declaration)#> [1] 6#> [1] 184756#> [1] 20 10000