Description Usage Arguments Value Examples

Compare coefficients values across two different models

1 | ```
compare_coefs(model1, model2, ...)
``` |

`model1` |
A model object (from |

`model2` |
A model object (from |

`...` |
Bare (unquoted) coefficient names present in both models. |

A tidy tibble with:

the coefficient names

the difference in coefficient values between models

standard error of the difference

z-statistic for the difference

p-value of the difference

lower 95 percent confidence bound for the difference

upper 95 percent confidence bound for the difference

the coefficient estimate from model1

the coefficient estimate from model2

the comparison method, always "Z-test"

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.

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.