run_model: Run a model and extract features

Description Usage Arguments Examples

Description

Run a model and extract features

Usage

1
2
3
4
5
6
7
run_model(data, response, predictor_variables, model_fn, model_name, ...)

run_lm(data, response, predictor_variables)

run_quadratic(data, response, predictor_variables, quadratic_variables)

run_loess(data, response, predictor_variables)

Arguments

data

data used. (data.frame)

response

single response variable to be used. (character)

predictor_variables

name of all predictor variables to be used. (character vector)

model_fn

function to create the model object

model_name

string of function name to create the model object

...

items passed to extract_model

quadratic_variables

name of quadratic variables. (character vector)

Examples

1
2
3
run_lm(iris, "Sepal.Length", c("Sepal.Width", "Petal.Width"))
run_quadratic(iris, "Sepal.Length", c("Sepal.Width", "Petal.Width"), c("Sepal.Width"))
run_loess(iris, "Sepal.Length", c("Sepal.Width", "Petal.Width"))

d3m-purdue/d3mLm documentation built on May 20, 2019, 2:25 p.m.