Open lovingpast opened 5 years ago
For your first power curve, if you have a large effect size then it makes sense that you don't need a large sample size. You also shouldn't be using an observed effect size here - you need to think about what effect size you need your study to detect.
I don't think the second power curve makes sense - by default along
uses the first x-variable, in this case WTRbyET
. along=Subject
makes much more sense.
Finally, it sounds like you're planning of running a large study with human participants, in which case you probably need to consult with a statistician.
Hi! Recently I met a problem with doing a powercurve for calculating the sample size for an interaction.
My model to be fit is like:
fit<-lmer(EmotionValue ~ WTR | EmotionType + WTR + Relation + PSex + TSex + EmotionType + Wrongness + (1|Snr) + (1|Subject) , data=datah1slct)
Basically, each participant would have one WTR and rate 2 different emotions, we want to figure out if the WTR would have different effects on the two emotions. So, in the model, we mainly focus on the interaction between WTR and Emotion Type.
We initially fitted the model and got an effect of the interaction of -1.3 (which is really a big one, we are also confused that this number should be beta or B for the regression). Then we found we could not define the interaction a fixed value since it is not a real factor. So we created a new variable using
WTRbyET=WTR*EmotionType
and defined its fixed effect as -1.3 for running a powercurve. As each participant has two rows of data, we also addedalong="subject"
part here.Then, the result became weird:
There is a crazy huge jump of the number from 0% to 100% of the power. Meanwhile, according to previous studies, the sample size for reaching 80% power could never be less than 500. I am wondering if we did something wrong?
Thanks!
----------update---------- I ran another set of powercurve without the belong term, the result is much better like this:
Dose it means that for reaching around 80% power, I need 1667 rows, which means 834 participants? Thanks!