Closed mpipoly closed 1 year ago
Hi,
this response might come to late, but I would recommend reducing n_sim to e.g., n_sim = 5 and steps to c(30, 40) to get an idea of how long the simulations take first. If the model/data is very large, mixedpower does indeed take quite some time. If the smaller (n_sim = 5) simulations run without any issues, the runtime might just be a product of your complex model. However, it should usually not take "a few days".
Thanks for the reply. I did try something like (but not that low of sims) that using all of my model terms and covariates. It just occurred to me now I might want to try the simulation with just the interaction of interest alongside the random effects to see if reducing terms helps reduce time (to figure out a baseline to run).
I will ping back what I find out. Any other advice that comes to mind is greatly appreciated!
You could also check out this Julia package, which should offer faster simulations!
Hello,
I am attempting to perform a post-hoc power analysis on a complex linear mixed effects model from real data. We want to see how powered we are with each effect of interest. The model has a total of 6 predictor terms and two random effects. The full model assessed a three-way interaction and thus contains 15 total estimates (including the constant).
My issue is that for the past few days I have been stuck on "step 30" even though my r-script is running on a high-performance computer with 32 cores and 500 gigabytes of RAM. It may be that this is expected considering what I asked mixed power to do but I am unsure of why that is the case and how it is occurring under the hood. Could this be solved with a verbose output? Is this a flag I am missing that I should know about?
Any advice and direction here is greatly appreciated!