This shinyapp will calculate the sample size needed for a given power.
- The sample size shinyapp is browser-based, and thus, no installation is needed
- The sample size shinyapp can be accessed in this link https://solislemus-lab.shinyapps.io/sample-size-shinyapp/
More details are available in the documentation: DOCS.md
Sample size shinyapp is an open source project, and the source code is available at in this repository with the main web app code in app.R
.
Users with strong programming skills might like to modify the existing R code and run a version of the web apps locally.
- The first step is to download the code. You can do this with git:
git clone https://github.com/solislemuslab/sample-size-shinyapp.git
- Make sure you have the dependencies installed. You can use the following command in R to install all the package dependencies:
list.of.packages <- c(
"shiny",
"ggplot2",
"bslib",
"DT",
"tidyverse",
"greekLetters",
"thematic",
"shinyhelper",
"shinyBS")
new.packages <- list.of.packages[!(list.of.packages %in% installed.packages()[, "Package"])]
if(length(new.packages)) install.packages(new.packages)
- Within R, you can run the web app with the following command:
shiny::runApp("/path/to/sample-size-shinyapp")
Users interested in expanding functionalities in the sample size shiny app are welcome to do so. See details on how to contribute in CONTRIBUTING.md
The sample size shiny app is licensed under the MIT licence. © Solis-Lemus Lab (2021)
Issues reports are encouraged through the GitHub issue tracker