top of page

Practical approach for sample size calculation using R: an online book

The online interactive book that was developed for the course is focused on 

  • Type I error and power.

  • Visualization.

  • Steps in sample size calculation.

  • Power and sample size calculation. for linear models. 

  • Correlated data.

  • Simulation.

All the materials are available in html, Rmd and PDF formats

Online interactive book 
The interactive book that was developed for the course is focused on sample size calculation in R. It contains the R code for the examples. To run the code you can copy and paste the code to R or to use the R markdown program of the book that is available online as well.
Rmd & PDF files of the book 

The R markdown and PDF versions of the book contain the same  materials presented in the online book. Note that if you work with the PDF file offline, it is still interactive and if you click on a link, it will lead you to the relevant online course material.

bottom of page