R/predictor_competition2.R
predictor_competition2.RdFits two linear or linear mixed-effects models that differ in their fixed effects. A difference of at least two AIC points is reported as evidence for the lower-AIC model.
predictor_competition2(
data,
dependent,
independent1,
independent2,
random.intercept = NULL,
random.slope = 1
)Data frame used for both models.
Name of the dependent variable.
Character vectors naming the fixed-effect terms in the two models.
Optional random-intercept grouping variable.
Random-slope expression; defaults to 1, which specifies
a random-intercept-only model.
The two-row data frame returned by stats::AIC().
data("data_s")
predictor_competition2(data_s, "sDur", "pauseBin", "typeOfS")
#> Lower-AIC predictor set: pauseBin.
#> df AIC
#> model1 3 -484.5026
#> model2 4 -462.1716