Function for creating combinations of covariates

combnCov(x, ...)

# S4 method for character
combnCov(x)

Arguments

x

Character vector of covariates to combine.

...

Additional arguments.

Value

Returns a character vector of formulae combinations.

Examples

combnCov(x = c('a', 'b', 'c'))
#> [1] "~a+b+c" "~b+c"   "~a+c"   "~c"     "~a+b"   "~b"     "~a"