set.seed(123)
X <- cbind(x = runif(20), y = runif(20),
time = seq(0, 1, length.out = 20))
# Example: visualize pure permutation
sim_pure <- sim.procedures(X, nperm = 1, method = "pure")[[1]]
plot_procedures(X, sim_pure, title = "Pure Permutation")
# Example: visualize block permutation (requires Block_permutation)
if (requireNamespace("combinat", quietly = TRUE)) {
sim_block <- block.permut(nblocks = 4, X = X, nperm = 1)[[1]]
plot_procedures(X, sim_block, title = "Block Permutation")
}
Run the code above in your browser using DataLab