compare_coefs: Compare coefficients values across two different models

Description Usage Arguments Value Examples

View source: R/modelling.R

Description

Compare coefficients values across two different models

Usage

1
compare_coefs(model1, model2, ...)

Arguments

model1

A model object (from lm for example) with a tidy method.

model2

A model object (from lm for example) with a tidy method.

...

Bare (unquoted) coefficient names present in both models.

Value

A tidy tibble with:

Examples

1
2
3
4
model <- lm(mpg ~ hp + drat, mtcars)
other <- lm(mpg ~ hp * disp + drat, mtcars)

compare_coefs(model, other, hp, drat)

alexpghayes/hayeslib documentation built on May 5, 2019, 4:47 p.m.