Description Usage Arguments Examples
Combine formula by outcome
1 | combine.formula(ls.formula, as.formula = TRUE, as.unique = FALSE)
|
ls.formula |
a list of formula |
as.formula |
should a list of formula be returned. Otherwise it will be a list of characters. |
as.unique |
should regressors appears at most once in the formula |
1 2 3 4 5 6 7 8 9 10 11 12 | combine.formula(list(Y~X1,Y~X3+X5,Y1~X2))
lava.options(symbols = c("~",","))
combine.formula(list("Y~X1","Y~X3+X5","Y1~X2"))
lava.options(symbols = c("<-","<->"))
combine.formula(list("Y<-X1","Y<-X3+X5","Y1<-X2"))
combine.formula(list(Y~X1,Y~X3+X1,Y1~X2))
combine.formula(list(Y~X1,Y~X3+X1,Y1~X2), as.formula = FALSE)
combine.formula(list(Y~X1,Y~X3+X1,Y1~X2), as.unique = TRUE)
lava.options(symbols = c("~","~~"))
combine.formula(list("Y~X1","Y~X3","Y1~X2"))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.