Open smonsays opened 6 years ago
Best to check the obvious things first.
1) Compare nrow(getData(mixedModel.h1))
to nrow(getData(mixedModel.h1Ext))
to see if extend
really increased your sample size. If I've understood correctly, this should have increased from 8,000 to 64,000?
2) Check if there were any errors during the second set of simulations, e.g. head(powerTest2$errors)
.
Thanks for your quick reply. I rechecked both points: (1) The sample size increases correctly to 64,000 and (2) there are no errors nor warnings after both simulations.
I can't see any obvious problems with your code. If you're willing to email me your data (email at this link https://cran.r-project.org/web/packages/simr/) I'd be able to have a closer look.
I am not really shure whether I do / understand something wrong but I get very inconsistent results from
powerSim()
when usingextend()
. I do the following:While powerTest1 returns already a value of around β=0.8, powerTest2 always returns β=0.00. Is there an obvious error in my calculations or should this theoretically work?
Thanks for your help!