Description Usage Arguments Value Author(s) Examples
Model formula from vector of terms where intercept is specified as a string
1 | Terms2formula(x, intercept = "(Intercept)", env = parent.frame())
|
x |
Character vector |
intercept |
String to specify intercept |
env |
Parameter to |
formula
Øyvind Langsrud
1 2 3 4 5 | Terms2formula(c("a", "b:c"))
Terms2formula(c("a", "b:c"), NULL)
Terms2formula(c("a", "b:c", "(Intercept)"))
Terms2formula(c("a", "b:c"), "1")
Terms2formula(c("a", "b:c", "1"), "1")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.