compare_models {regrrr}R Documentation

Compare regression models, which is compatible with the reg.table output # updated 9/13/2018 #

Description

Compare regression models, which is compatible with the reg.table output # updated 9/13/2018 #

Usage

compare_models(
  model1,
  model2,
  model3 = NULL,
  model4 = NULL,
  model5 = NULL,
  model6 = NULL,
  model7 = NULL,
  model8 = NULL,
  model9 = NULL,
  model10 = NULL,
  model11 = NULL,
  model12 = NULL,
  model13 = NULL,
  model14 = NULL,
  model15 = NULL,
  model16 = NULL,
  model17 = NULL,
  model18 = NULL,
  model19 = NULL,
  model20 = NULL,
  likelihood.only = FALSE,
  round.digit = 3,
  main.effect.only = NULL,
  intn.effect.only = NULL
)

Arguments

model1

the 1st regression model

model2

the 2nd regression model

model3

the 3rd regression model

model4

the 4th regression model

model5

the 5th regression model

model6

the 6th regression model

model7

the 7th regression model

model8

the 8th regression model

model9

the 9th regression model

model10

the 10th regression model

model11

the 11th regression model

model12

the 12th regression model

model13

the 13th regression model

model14

the 14th regression model

model15

the 15th regression model

model16

the 16th regression model

model17

the 17th regression model

model18

the 18th regression model

model19

the 19th regression model

model20

the 20th regression model

likelihood.only

whether or not to output the likelihood

round.digit

number of decimal places to retain

main.effect.only

specify col number of alternative main-effect models, if any

intn.effect.only

specify col number of alternative moderator models, if any

Examples

data(mtcars)
m1 <- lm(mpg ~ vs + carb + hp + wt + wt * hp , data = mtcars)
m2 <- update(m1, . ~ .+ wt * vs)
compare_models(m1, m2)


[Package regrrr version 0.1.3 Index]