Description Usage Arguments Value Author(s) Examples
Transform format of predictors from vectors to single variables.
1 | generate_formula(formula, label_names)
|
formula |
(formula) A symbolic description of the model to be fitted. |
label_names |
(list) A character string indicating all the interior variables included in each predictor. |
generic_formula |
(formula) A symbolic description of the model written in single variables format. |
length_main |
(integer) A numeric value indicating the length of main effects. |
Wenying Deng
1 2 | generic_formula0 <- generate_formula(formula = Y ~ X1 + X2,
label_names = list(X1 = c("x1", "x2"), X2 = c("x3", "x4")))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.