Open ZKorda opened 2 years ago
Thanks for reporting this error. It might be a couple of days before I can get to it.
Would it be possible for you to send me the data you're using so I can replicate this? You can use the maintainer email address here: https://cran.r-project.org/web/packages/simr/index.html
Needed to close this:
Hi,
I am encountering an error when I am trying to run powerSim. There is no misssing data in my model.
My model:
model2 <- lmer(y~ task*workload*bin*lum+timeTask + (task*workload|participant)+ (1|trial), data=data)
powerSim:
sim_treat <- powerSim(model2, nsim=2, test=fixed("task:workload:bin:lum+timeTask", "z"))
I also tried specifing it differently (e.g., see below) but I always get the same results:
sim_treat <- powerSim(model2, nsim=2, test=fixed("taskvs:workloadeasy:bin500-1000:lumchange+timeTask", "z"))
I am not sure what this message means and I could not find any answers here. I see it uses intercept, trial and participant, which does not make any sense to me since this is a part of the random structure, not fixed effects.
Any ideas what can I do?