pitakakariki / simr

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

Improved documentation / UX for interaction terms. #156

Open pitakakariki opened 5 years ago

pitakakariki commented 5 years ago

Scan https://github.com/pitakakariki/simr/issues/91 for potentially confusing options.

pitakakariki commented 2 years ago

From: https://github.com/pitakakariki/simr/issues/99#issuecomment-1061402313

"I'm posting this for anyone else troubleshooting power analysis in simr for interaction effects: if you're getting power for test="t" but not "chisq", "anova", or "f", or vice versa, check how you're specifying the interaction term in the test function. For the "t" test the interaction effect should appear as it looks in summary(yourmodel). For the other tests, it should appear as it looks in Anova(yourmodel). This tripped me up quite a bit, hope it helps someone else!"