Learn R Programming

regrrr (version 0.1.3)

combine_long_tab: Combine regression results from different models by columns

Description

Combine regression results from different models by columns

Usage

combine_long_tab(
  tbl_1,
  tbl_2,
  tbl_3 = NULL,
  tbl_4 = NULL,
  tbl_5 = NULL,
  tbl_6 = NULL,
  tbl_7 = NULL,
  tbl_8 = NULL,
  tbl_9 = NULL,
  tbl_10 = NULL,
  tbl_11 = NULL,
  tbl_12 = NULL,
  tbl_13 = NULL,
  tbl_14 = NULL,
  tbl_15 = NULL,
  tbl_16 = NULL,
  tbl_17 = NULL,
  tbl_18 = NULL,
  tbl_19 = NULL,
  tbl_20 = NULL
)

Arguments

tbl_1

the 1st data.frame of regression result

tbl_2

the 2nd data.frame of regression result

tbl_3

the 3rd data.frame of regression result

tbl_4

the 4th data.frame of regression result

tbl_5

the 5th data.frame of regression result

tbl_6

the 6th data.frame of regression result

tbl_7

the 7th data.frame of regression result

tbl_8

the 8th data.frame of regression result

tbl_9

the 9th data.frame of regression result

tbl_10

the 10th data.frame of regression result

tbl_11

the 11th data.frame of regression result

tbl_12

the 12th data.frame of regression result

tbl_13

the 13th data.frame of regression result

tbl_14

the 14th data.frame of regression result

tbl_15

the 15th data.frame of regression result

tbl_16

the 16th data.frame of regression result

tbl_17

the 17th data.frame of regression result

tbl_18

the 18th data.frame of regression result

tbl_19

the 19th data.frame of regression result

tbl_20

the 20th data.frame of regression result

Examples

Run this code
# NOT RUN {
data(mtcars)
m1 <- lm(mpg ~ vs + carb + hp + wt + wt * hp , data = mtcars)
m2 <- update(m1, . ~ .+ wt * vs)
summary(m1)
summary(m2)
combine_long_tab(to_long_tab(summary(m1)$coef), 
                 to_long_tab(summary(m2)$coef))

# }

Run the code above in your browser using DataLab