Description Usage Arguments Value Author(s) Examples
Generate all combinations of predictors of a formula.
1 2 | ## S3 method for class 'formula'
find_combinations(object, interaction = TRUE, fixed = NULL, ...)
|
object |
Formula. |
interaction |
Include interaction term. |
fixed |
Additional formula part to add at the beginning of each combination. |
... |
Arguments passed to or from other methods. |
list containing all combinations.
1 2 3 4 5 6 7 | library(psycho)
f <- as.formula("Y ~ A + B + C + D")
f <- as.formula("Y ~ A + B + C + D + (1|E)")
f <- as.formula("Y ~ A + B + C + D + (1|E) + (1|F)")
find_combinations(f)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.