fdPanelCoefficients: Display regression coefficients

Description Usage Arguments Examples

Description

Display regression coefficients

Usage

1
fdPanelCoefficients(mod, digits = 3, barColor = "steelblue", ...)

Arguments

mod

model object

digits

number of digits to display

barColor

bar color

...

additional arguments passed to createCoefficientsTable

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
library(flightdeck)

#' Example 1: Linear Regression Model
data(diamonds, package = 'ggplot2')
panel1 <- lm(price ~ ., data = diamonds) %>%
  fdPanelCoefficients %>%
  fdPreview  

if (interactive()) {
  panel1
}

#' Example 2: GlmNet Model
library(glmnet)
data(QuickStartExample)
panel2 <- glmnet(x, y) %>%
  fdPanelCoefficients(s = 0.3) %>%
  fdPreview

if (interactive()){
  panel2
}

alteryx/flightdeck documentation built on May 12, 2019, 1:39 a.m.