| make_patterns | R Documentation |
Builds the full design grid of binary fixed-effect patterns used by COLA to aggregate counts and outcome sums. When 'intercept = TRUE', an 'Intercept' column of ones is included and all other variables are expanded over {0,1}.
make_patterns(x_names, intercept = TRUE)
x_names |
Character vector of fixed-effect names. If 'intercept = TRUE', it may include '"Intercept"'; otherwise it must not. |
intercept |
Logical; include a fixed intercept column. Default: 'TRUE'. |
A tibble of all binary patterns over 'x_names' (with/without 'Intercept'), one row per pattern.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.