get.model.combos | R Documentation |
Enumerate all combinations of predictor variables in a multivariate regression model.
get.model.combos(outcome.var, predictor.vars, min.q=1)
predictor.vars |
predictor variables names (a vector of character strings) |
outcome.var |
outcome variable name (character string) |
min.q |
minimum number of predictor variables to include in the mode (default is 2) |
a vector of models as character strings of the form "y ~ x1 + x2 ..."
path <- system.file("extdata","primate-example.data.csv", package="mmodely")
data <- read.csv(path, row.names=1)
get.model.combos(outcome.var='OC', predictor.vars=names(data), min.q=2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.