eststore: Eststore function

Description Usage Arguments Value Examples

View source: R/eststore.R

Description

Store regression output in a list like stata's eststore

Usage

1
eststore(est, estlist_arg = estlist)

Arguments

est

the regression estimate to be stored

estlist_arg

the list of stored regressions

Value

side effect style update the estlist_arg with the est

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
mtcars %>%
  lm(data = ., mpg ~ disp) %>%
  eststore(car_regs)

mtcars %>%
  lm(data = ., mpg ~ hp) %>%
  eststore(car_regs)

mtcars %>%
  lm(data = ., mpg ~ disp + hp) %>%
  eststore(car_regs)

car_regs[[1]] %>% summary()
car_regs[[2]] %>% summary()
car_regs[[3]] %>% summary()

# textablr::estout(car_regs)

jamesfeigenbaum/jjfPkg documentation built on June 17, 2018, 9:52 p.m.