Skip to content

solislemuslab/sample-size-shinyapp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

R Shinyapp Sample size

This shinyapp will calculate the sample size needed for a given power.

Usage

More details are available in the documentation: DOCS.md

Source Code

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.

Running the web apps locally

Users with strong programming skills might like to modify the existing R code and run a version of the web apps locally.

  1. The first step is to download the code. You can do this with git:

git clone https://github.com/solislemuslab/sample-size-shinyapp.git

  1. 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)
  1. Within R, you can run the web app with the following command:

shiny::runApp("/path/to/sample-size-shinyapp")

Contributions

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

License

The sample size shiny app is licensed under the MIT licence. © Solis-Lemus Lab (2021)

Feedback, issues and questions

Issues reports are encouraged through the GitHub issue tracker