combineFormula {lavaSearch2} | R Documentation |
Combine formula
Description
Combine formula by outcome
Usage
combineFormula(ls.formula, as.formula = TRUE, as.unique = FALSE)
Arguments
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 |
Examples
combineFormula(list(Y~X1,Y~X3+X5,Y1~X2))
lava.options(symbols = c("~",","))
combineFormula(list("Y~X1","Y~X3+X5","Y1~X2"))
lava.options(symbols = c("<-","<->"))
combineFormula(list("Y<-X1","Y<-X3+X5","Y1<-X2"))
combineFormula(list(Y~X1,Y~X3+X1,Y1~X2))
combineFormula(list(Y~X1,Y~X3+X1,Y1~X2), as.formula = FALSE)
combineFormula(list(Y~X1,Y~X3+X1,Y1~X2), as.unique = TRUE)
lava.options(symbols = c("~","~~"))
combineFormula(list("Y~X1","Y~X3","Y1~X2"))
[Package lavaSearch2 version 2.0.3 Index]