what_next: what_next

View source: R/model_next_step.R

what_nextR Documentation

what_next

Description

run model with other variables from the data

Usage

what_next(model = NULL, data = NULL, verbose = FALSE, r2_diff = TRUE)

Arguments

model

Model object

data

data.frame containing data for analysis

verbose

A boolean to specify whether to print warnings

r2_diff

A boolean to determine whether to add a column to compare new and original model R2

Details

Run a separate model for each numeric variable in the data provided. Then, for each model run, return that model's fit and the variables' statistics.

Value

data.frame mapping variables' to the respective model's statistics.

Examples

run_model(
    data = mtcars,
    dv = 'mpg',
    ivs = c('disp', 'cyl')
  ) %>% 
  what_next()

linea documentation built on Sept. 15, 2022, 9:06 a.m.