Obtaining a data.frame
which encodes the design
information.
Examples
data(simdata)
des <- rct_design(z ~ uoa(uoa1, uoa2) + block(bid), data = simdata)
get_structure(des)
#> z uoa1 uoa2 bid
#> 1 0 1 1 1
#> 2 0 1 2 1
#> 3 0 2 1 1
#> 4 1 2 2 1
#> 5 0 3 1 2
#> 6 0 3 2 2
#> 7 1 4 1 2
#> 8 0 4 2 3
#> 9 1 5 1 3
#> 10 1 5 2 3