Hello.
I'd like to time how several regression models are computed using different libraries.
Till now I was using something like this:
benchmark(
"mod1" = {mod1 <- glm(varOUT~var1+var2+var3+varfact+City, data=myDF, family = "binomial")},
"mod2" = {mod2 <- glmer(varOUT~var1+var2+var3+varfact+(1|City/ID),data=myDF,family = "binomial")},
"mod3" = {mod3 <- glmmTMB(varOUT~var1+var2+var3+varfact+(1|ID),data=myDF,family = "binomial")},
}, replications=1)
But now I would also like to add information about how much memory (maximum) is used by each of these regressions. How can I do it?
Regards.