xkablevif: Combining faraway::vif, xtable, and kableExtra, to easily...

View source: R/idsDisplay.R

xkablevifR Documentation

Combining faraway::vif, xtable, and kableExtra, to easily display numeric summary of VIFs for a model. ELo 202004 GWU DATS version 1.3

Description

Combining faraway::vif, xtable, and kableExtra, to easily display numeric summary of VIFs for a model. ELo 202004 GWU DATS version 1.3

Usage

xkablevif(
  model,
  title = "",
  digits = 3,
  pos = "left",
  bso = "striped",
  wide = TRUE
)

Arguments

model

The lm or compatible model object.

title

Title of table.

digits

Number of digits to display

pos

Position of table, c("left","center","right")

bso

bootstrap_options = c("basic", "striped", "bordered", "hover", "condensed", "responsive")

wide

print table in long (FALSE) format or wide (TRUE) format

Value

The HTML summary table of the VIFs for a model for display, or for knitr to process into other formats

Examples

xkablevif( lm(Salary~Hits+RBI, data=ISLR::Hitters), wide=T )

physicsland/ezids documentation built on Feb. 4, 2024, 2:13 a.m.