Learn R Programming

linea (version 0.1.1)

what_next: what_next

Description

run model with other variables from the data

Usage

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

Value

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

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.

Examples

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

Run the code above in your browser using DataLab