fosstodon.org is one of the many independent Mastodon servers you can use to participate in the fediverse.
Fosstodon is an invite only Mastodon instance that is open to those who are interested in technology; particularly free & open source software. If you wish to join, contact us for an invite.

Administered by:

Server stats:

9.9K
active users

#lme4

0 posts0 participants0 posts today

Today I noticed that the AIC values included in the model table when I do a likelihood ratio test of two LME models do not match the AIC values I get for those models if I use the AIC() function. Is this common knowledge? Is there a good reason (e.g. something from math stat I've forgotten that makes these questions not the same)?

Here's a code snippet demonstrating. gist.github.com/emjonaitis/237

Gistaic_inconsistency.RGitHub Gist: instantly share code, notes, and snippets.
Continued thread

I regard myself as relatively technologically proficient and often an early adopter. Where many within my field would do their analyses in SPSS and write their articles in Word (which is fine), I prefer a workflow with, say, #RStudio and #Quarto, write analyses and text as a single reproducible document, and collaborate with #GitHub. Still, the whole generative AI thing has always... repelled me, and even more so for any kind of work within #academia. But I don’t find it easy to explain exactly what bothers me.

An important aspect of it is the «black box» thing. Scientific work should be transparent and reproducible. Output from an #LLM is anything but.

Another thing is watching colleagues get «coding advice» from an LLM for their statistical analyses that I immediately see will not run. Where, say, #lme4 syntax and #lavaan syntax is mixed up.

Third, I’ve seen horrendous examples where students ask LLMs to find research for them, with the LLM «digging up» one fictitious article after another, with fictitious results, sometimes with actual names of actual researchers, delivered with confidence. Admittedly, that was some while ago.
2/3

Exciting News! 📚 Our work on Reliability and Feasibility of Linear Mixed Models in Fully Crossed Experimental Designs published in AMPPS! 🎉 #R #lme4 #MixedModels @Scandle & @letstido @universityofleeds

journals.sagepub.com/doi/10.11

We present #recommendations and a clear #pipeline for handling #random effects in the presence of non-convergent and singular models. No more reduced models causing first-type errors due to data pseudoreplication!

What model #statistics should one report after using multiple #imputation and #multilevel regressions, and how are they obtained? I'm using the #mice package in #rstats, and #lme4 on each imputed dataset. When pooling results, summary() yields what I need for each model term, but nothing for the whole model. If I didn't impute but deleted listwise, I would normally report AIC, BIC, Loglik. These are all in the mipo object, for each result for each imputed dataset, but they're not pooled. I'm sure I'm missing something here. Does anyone know an example article where such results are presented neatly?

I have written a book draft of an introduction to modeling, entitled Thinking: agrogan1.github.io/multilevel-. Comments, questions and corrections are appreciated, as are suggestions for a possible publisher.

While applicable to many different software programs, the book is currently centered around the use of , but I hope to extend it to use of () and

agrogan1.github.ioMultilevel ThinkingDiscovering Diversity, Universals, and Particulars in Cross-Cultural Research

A mixed effects question for you #rstats #lme4 people: Persons are organised in groups for some time. No movement between groups. We have self-ratings of a Trait, and all persons in the group rate all other persons in the same group on a Behavior (but larger n/groups than in the picture). I want to predict Behavior by Trait. My first thought is a linear mixed-effects model with two random terms: Behavior ~ Trait + (1 | Subject) + (1 | Rater) Would that work? This is new territory for me.

Our research group is doing a seminar the coming week, and I've been asked to hold a one-hour intro to quantitative diary studies and #multilevel analyses for new #phd students unfamiliar with this way of collecting data. I'd like to highlight benefits, when it's appropriate, show an example using #rstats and #lme4, and start a discussion around how they can do this themselves in their projects.

Does anyone have suggestions for stuff to include, or clever ways to convey it? Resources?

Continued thread

Two #rstats things that people might (hopefully) find useful are for example this blog I wrote about #poweranalysis through #datasimulation julianquandt.com/#posts (covering t-test / anova / linear mixed models and more) and these standard operating procedure for #lmm #mixedmodels (#brms and #lme4) I took part in creating decision-lab.org/wp-content/up

Julian QuandtJulian QuandtPhD student