I think the package lmerTest has such a function. I'll look it up and will let you know if you don't already have it by then.
STG
--
Stefan Th. Gries
----------------------------------
Univ. of California, Santa Barbara
http://tinyurl.com/stgries
----------------------------------
--
You received this message because you are subscribed to the Google Groups "StatForLing with R" group.
To unsubscribe from this group and stop receiving emails from it, send an email to statforling-wit...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Yes, it's just lmerTest::step.
lme4::lmer(dep_var ~ log(lex_freq + 1), ...)
Error in mat %*% rho$fixEffs : non-conformable arguments
library(dplyr)
input_df <-
input_df %>%
mutate(lex_freq_log = log(.$lex_freq + 1))
model1 <- lme4::lmer(dep_var ~ lex_freq_log, ...)
lmerTest::step(model1)
> BTW, lmerTest::step throws an error if you log a frequency measure in the formula to lme4::lmer
Several functions do that, some of the effects package functions react similarly so it's always best to create those things before the model fitting (and only then attach).