Learn R Programming

insight (version 0.18.6)

get_predictors: Get the data from model predictors

Description

Returns the data from all predictor variables (fixed effects).

Usage

get_predictors(x, verbose = TRUE)

Value

The data from all predictor variables, as data frame.

Arguments

x

A fitted model.

verbose

Toggle messages and warnings.

Examples

Run this code
m <- lm(mpg ~ wt + cyl + vs, data = mtcars)
head(get_predictors(m))

Run the code above in your browser using DataLab