Skip to contents

Obtaining a data.frame which encodes the design information.

Usage

get_structure(design)

# S4 method for class 'DesignStructure'
show(object)

Arguments

design

a Design object

object

a DesignStructure object, typically the output of get_structure()

Value

A DesignStructure object containing the structure of the design as a data.frame.

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