For exploratory purposes, I'm running 156 different regression models. For each model, I extract AIC, BIC, logLik and R².
Copying each metric for each model (624x CtrlC/V) and pasting to an Excel blank file simply feels very dumb - because it is.
QUESTION: Does anyone have a tip on how to code a workaround for this time wasting work? Maybe elucidating how I could sequentially add it to a new data frame.
Code example:
a <- lmer(y ~ covariate¹ + ... + covariateⁿ + Time + (1 + Time | ID))
AIC(a)
BIC(a)
logLik(a)
r.squaredGLMM(a)
Thanks. Cheers
EDIT: I mean, I know identifying them might be a concern (like some sorts of model in different columns), but in this case whatever. If I got a DF of 156 lines x 4 columns (4 metrics of interest per model) I would already be happy.