Skip to content

Commit

Permalink
Update check-power.qmd
Browse files Browse the repository at this point in the history
formatting bullet list
  • Loading branch information
MalikaIhle committed Sep 3, 2024
1 parent fafe045 commit d7ad83e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tutorial_pages/check-power.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ The sample size `n` we need given this set of parameters, is `64` per group.

Just as we can check the alpha of our test by sampling from the same distribution (i.e. simulating data without an effect), we can check the power by sampling from different distributions (i.e. simulating data with an effect).

If we sample values from two normal ditributions with different means (e.g. N(0,1) and N(0.5,1)), what is the minimum sample size we need to detect a significant difference in means with a t.test, 80% of the time?
If we sample values from two normal ditributions with different means (e.g. N(0,1) and N(0.5,1)), what is the minimum sample size we need to detect a significant difference in means with a t-test, 80% of the time?

***

Expand Down Expand Up @@ -58,9 +58,11 @@ Using simulations for power analysis is not really necessary for simple examples
When analyses become complex and it is hard or impossible to determine a sample size analytically (i.e. you can't calculate it, or there's no suitable function to use), then simulations are an indispensible tool.

A simple example of a power analysis like the one you've just done can be found in the "Power analysis" section of this paper:

* Blanco, David, et al (2020). "Effect of an editorial intervention to improve the completeness of reporting of randomised trials: a randomised controlled trial." BMJ open 10.5: e036799. <a href="https://doi.org/10.1136/bmjopen-2020-036799" target="_blank">https://doi.org/10.1136/bmjopen-2020-036799</a>

A complete self-paced tutorial to simulate data for power analysis of complex statistical designs can be found here:

* <a href="https://lmu-osc.github.io/Simulations-for-Advanced-Power-Analyses/" target="_blank">https://lmu-osc.github.io/Simulations-for-Advanced-Power-Analyses/</a>

***
Expand Down

0 comments on commit d7ad83e

Please sign in to comment.