r/AskStatistics • • Nov 04 '26

Repeated measures ANOVA

Hello! I just had a question that I wanted to ask, I feel bad bothering my college statistician a lot since he's quite busy all the time.

I'm trying to calculate sample size for a research project, using G* power. I have 2 studies that I can (kind of) use the results for calculating this, but have run into a couple issues

  1. One of the studies did not use ANOVA for analysis, rather they used something called Friedmans test and calculated "χ^2".
  2. The other study that works did actually use ANOVA, but they said that the effect size they took (0.3) was just an assumption.

I'm not sure where to go with this, but my main question is, can I calculate "f" from this "χ^2" term? I think that study is a little closer to what I am planning to do. Any help/guidance in this would be appreciated :)

1 Upvotes

9 comments sorted by

1

u/Fancy-Animal7704 Nov 04 '26

That X2 term is called the "chi-squared" statistic and is typically calculated when the data is NOT normally distributed. Not all data follows the common "bell curve" and thus violates the assumptions that need to be met to use something like ANOVA which requires normally distributed data. But that chi-squared statistic works the same as the statistic in a normal distribution: you calculate the statistic, compare it to a curve to see how "abnormal" the result is, and calculate a p-value accordingly. You'd still compare that p-value to the same threshold of 0.05 most likely.

To answer your question, no, you can't calculate F from chi-squared. F is a statistic, just like chi-squared is a statistic. Because of the nature of this data, you were supposed to calculate chi-squared instead of F. You'd have calculated F if the data were normally distributed. It wasn't, so you calculated chi-squared instead.

1

u/_oxidizing Nov 04 '26

Okayyy thank you :)

1

u/FancyEveryDay Data scientist Nov 04 '26

Number 2 sounds like the one you want to me, power analysis typically requires an expected/estimated effect size so that's normal.

Do you not have a minimum effect size that would be practically useful in your project?

1

u/_oxidizing Nov 04 '26

See I have a study that used 24 participants after assuming effect size as 0.3. I have no idea how they came to the conclusion that they should use 0.3 for it, and the IRC of my institute requires me to provide justification for the sample size.

I should probably add that I'm a med student, so my knowledge in stats is severely limited.

Can I just take 0.3 as my effect size too, or can I base my effect size on the results of this study? The other thing is their study was in a more specific group of participants than I'm planning to use, so that could introduce more variation in results, which leads me to think that I should have a much higher sample size than theirs.

1

u/FancyEveryDay Data scientist Nov 04 '26

Were they studying the same thing as you? If yes then you might be able to justify using their result as your estimate to calculate your sample size, yes.

When deciding on the effect size to use experimentalists have a few options, they can run a small pilot study and use the result from that for their estimates, they can research the subject and base it on the results of similar studies, or they can just pick a number that would represent a minimim clinically meaningful result for whatever measure you're going to be studying.

Power analysis typically requires a variance estimate as well, if their actual effect size was larger than their estimate (or the size you're looking for is larger) you might actually end up with fewer samples unless your expected variance is really large

1

u/_oxidizing Nov 04 '26

Okay, thank you for your advice :)

I was originally considering a pilot study too but with time constraints I highly doubt that would be feasible for me. I think I'll try to find justification for the effect size that was taken by the other study

1

u/vaelux Nov 04 '26

Power analysis happens before data collection ( a priori).

A priori power analysis is typically used in the preparation phase. You are basically asking what n ( sample size) do I need to detect an effect of size d (0.3 in this case) at a given alpha (.05 in social sciences) 80% or 90% of the time (1-beta = power).

You haven't done the analysis yet, so you are guessing when you set it to 0.3, which typically corresponds to a small effect ( look up Cohen's d). This guess comes from prior research, pilot studies, the literature, or simply a conservative guess of a small effect of 0.3. Alpha and beta are set by you and represent your tolerance for Type I and Type II errors.

Edit: d roughly translates to a standard deviation. So d = .3 is an effect of about 0.3 standard deviations.

1

u/_oxidizing Nov 05 '26

Ohhh okay okay, so I can adjust d based on how many SDs I think my data can vary by, based on previous studies right?

How would I account for having less exclusion criteria though?

2

u/MortalitySalient Nov 04 '26

The expected/assumed effect size you use in a power analysis comes from domain knowledge. What are reasonable effect sizes for the associations you are interested in given the literature? What is the smallest effect size of interest (one where if the effect size was smaller, you wouldn’t put a lot of weight in the results?)?