This repo is organized as follows:
1) Download this entire repository (you can download as a zip folder using Code -> Download ZIP, or you can use GitHub Desktop).
1) Navigate to PhenotypeR in the 1_Diagnostics folder. Open the project PhenotypeR.Rproj in RStudio (when inside the project, you will see its name on the top-right of your RStudio session) in 1_Diagnostics/PhenotypeR
2) Open and work though the CodeToRun.R file which should be the only file that you need to interact with. Run the lines in the file, adding your database specific information and so on (see comments within the file for instructions). The last line of this file will run the study (source(here("RunStudy.R")).
3) After running you should then have a zip folder with results to share in your output folder.
1) Open the folder 2_Study and then the project THINCancerIncidencePrevalence.Rproj in RStudio (when inside the project, you will see its name on the top-right of your RStudio session)
2) Open and work though the CodeToRun.R file which should be the only file that you need to interact with. Run the lines in the file, adding your database specific information and so on (see comments within the file for instructions). The last line of this file will run the study (source(here("RunStudy.R")).
3) After running you should then have a zip folder with results to share in your output folder.
1) Open the 3_Reporting folder and open the project Shiny.Rproj 2) Place the results from the main study into the data file of the shiny 3) Run app and your results will be available to review locally