Skip to main content

Resources

Follow-up self-paced tutorial on simulation of data analyses for advanced power analyses

Hallgren 2013

The article suggested for getting familiarised with the topic prior to the session, i.e. Conducting simulation studies in the R programming environment (Hallgren 2013), contains accompanying R scripts and CSV data files which you can peruse in the hallgren-2013 folder of this repository. It contains:

  • Annotated R syntax file for Example 1: novel-question.R.
  • Annotated R syntax file for Example 2: power-analysis.R.
  • Annotated R syntax file for Example 3: bootstrapping.R.
  • CSV dataset generated in Example 1, which is also used later in Example 2: novel-question-output.csv.
  • CSV dataset used in Example 3: mediation-raw-data.csv.

Use of R packages to run simulations


References

Blanco, David, Sara Schroter, Adrian Aldcroft, 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. https://doi.org/10.1136/bmjopen-2020-036799.
Hallgren, Kevin A. 2013. “Conducting Simulation Studies in the R Programming Environment.” Tutorials in Quantitative Methods for Psychology 9 (2): 43–60. https://doi.org/10.20982/tqmp.09.2.p043.
Johnson, Paul C. D., Sarah J. E. Barry, Heather M. Ferguson, and Pie Müller. 2015. “Power Analysis for Generalized Linear Mixed Models in Ecology and Evolution.” Methods in Ecology and Evolution 6 (2): 133–42. https://doi.org/10.1111/2041-210X.12306.
Privé, Florian, Hugues Aschard, Andrey Ziyatdinov, and Michael G. B. Blum. 2018. “Efficient Analysis of Large-Scale Genome-Wide Data with Two R Packages: bigstatsr and bigsnpr.” Bioinformatics 34 (16): 2781–87. https://doi.org/10.1093/bioinformatics/bty185.
Rönnegård, Lars, S. Eryn McFarlane, Arild Husby, Takeshi Kawakami, Hans Ellegren, and Anna Qvarnström. 2016. “Increasing the Power of Genome Wide Association Studies in Natural Populations Using Repeated Measures – Evaluation and Implementation.” Methods in Ecology and Evolution 7 (7): 792–99. https://doi.org/10.1111/2041-210X.12535.
Back to top