pitakakariki / simr

Power Analysis of Generalised Linear Mixed Models by Simulation
68 stars 19 forks source link

Simplified random effect testing #231

Open pitakakariki opened 2 years ago

pitakakariki commented 2 years ago

Consider a model with random effects (1 | A) + (1 | B) + (1 | C). How to test for significance of effect A?

Currently might use rcompare(~ (1 | B) + (1 | C)). Less than ideal because that's a lot of typing and more importantly the thing you're testing is the the one you're specifically not mentioning.

Maybe extend random so that you can specify a grouping factor to drop? i.e. random() would still work for a single random effect, but e.g. random("A") would just drop A.