20 November 2019
This repository is for the development and maintenance of R teaching material for use in the EPIET (European Programme of Intervention Epidemiology Training) and UK FETP (United Kingdom Field Epidemiology Training Programme) Time Series Analysis (TSA) module.
The module consists of a single computer-based practical exercise that uses multiple datasets to demonstrate different facets of time series analysis; the help guide for these exercises has been translated from the STATA version into R.
This material is based on an equivalent practical guide for STATA. The guide is presented as an R markdown document; please see the title pages for copyright details and a list of authors and contributors.
Each exercise requires the use of one or more teaching datasets, which are included in this repository.
To run the R markdown guide or R template, participants and facilitators will need to install the following software:
- R (download and install the latest version from CRAN here)
- RStudio (download the latest version as an installer or ready-to-use
.zip
file here) - Rtools (download and install the latest version from CRAN here)
A list of required R packages and functions, as well as code to install them has been included in the first chunk of each R markdown document.
After installing the above software, clone this repository either by
clicking on the green Clone or download
button on this page, or by
entering the following command into git bash:
git clone https://github.com/EPIET/TimeSeriesAnalysis.git
Then:
- Open the .Rproj file in RStudio
- Navigate to the
Files
tab within RStudio - Click on the relevant R markdown document to open it
To provide a printed copy of the R markdown practical guide for participants:
- Open the relevant R markdown document in RStudio (as above)
- Click on the
Knit
button and selectKnit to pdf
- This will save a .pdf version of the document in your working directory, which can then be printed.
This project is currently being maintained by Amy Mikhail.
Contributions are welcome: please contact the maintainer to request access.
To report bugs or make feature requests, please post an issue here.