Skip to content

Latest commit

 

History

History
44 lines (33 loc) · 878 Bytes

00_readme.md

File metadata and controls

44 lines (33 loc) · 878 Bytes

Clinical-Trial-Simulator

This application can be run as a Shiny app or locally in the R shell. Data is generated and stored in ./ReplicateData/ and can be visualized by functions from the app within the shell or through the Shiny app.

To run the app:

  1. Start an R session and set the working directory to the directory containing the trial.r file.

  2. In the R session enter:

   > source('./trial.r')
  1. Enter
> runtrial()
  1. You should find the data generated in ./ReplicateData/

  2. Then enter:

> getDensities()

to get an overview on the distributions of responses depending on doses.

  1. Enter:
> getBoxplots()

to get a boxplot overview of the simulated data.

  1. Enter:
> library(shiny)
> runApp()

to open the app in the browser.

You may of course skip steps 2) - 7) if you just want to use the Shiny app.