f_model_add_predictions_2_grid_regression: add predictions to grid (regression models)

Description Usage Arguments Value See Also Examples

View source: R/f_model_var_dep.R

Description

wrapper for f_predict_regression_add_predictions

Usage

1

Arguments

grid

grid containing all variables used for the model

m

model

var

character vector denoting response variable

Value

grid

See Also

add_predictions

Examples

1
2
3
4
5
data_ls = f_clean_data(mtcars)
formula = disp~hp+mpg
m = lm(formula, data_ls$data)
grid = f_model_data_grid(data_ls, formula, 'hp', 10) %>%
  f_model_add_predictions_2_grid_regression( m, 'disp')

erblast/oetteR documentation built on Nov. 13, 2018, 9:09 a.m.