GithubHelp home page GithubHelp logo

seabbs / tbinenglanddataclean Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 1.0 32.03 MB

Cleans and Munges Tuberculosis and Demographic Data for England

Home Page: http://www.samabbott.co.uk/tbinenglanddataclean/

License: GNU General Public License v3.0

R 99.60% Dockerfile 0.40%
england data-cleaning tuberculosis demographics incidence

tbinenglanddataclean's Introduction

tbinenglanddataclean

Lifecycle: stable develVersion Documentation via pkgdown Build Status codecov DOI

tbinenglanddataclean is an R package that contains functions and documentation to reproduce clean and munge available TB data in England.

Installation

You can install tbinenglanddataclean from github with:

# install.packages("devtools")
devtools::install_github("seabbs/tbinenglanddataclean")

Raw data

This package relies on raw data from several sources, these are;

  1. An extract of from the Enhanced Tuberculosis Surveillance System. Access to this data requires an application to Public Health England.
  2. Data on historic TB notifications from Public Health England.
  3. Demographic data from 2000, and from 2001 to 2015 from the Office of National Statistics (ONS) this data can be downloaded freely.
  4. Data on births in the UK both observed and projected from the ONS, available here and here.
  5. Data on age specific mortality rates from the ONS, available here.
  6. Survey information from the Labour Force Survey, as yearly extracts from 2000-2016 for the April to June survey. Only registered users can download this data. Registration is possible for those at UK institutions. Other access arrangements can be made at request.

Cleaning and building the datasets

The included vignette contains the code necessary to build all datasets associated with this package. Each function needs to be pointed at the correct raw data. If the default file names/locations are changed then this will also require updating. Contact me if you have any problems.

Other vignettes explore approaches for estimating demographic parameters from the clean and munged datasets.

Docker

This packge was developed in a docker container based on the tidyverse docker image. To run the docker image run:

docker run -d -p 8787:8787 --name tbinenglanddataclean --mount type=bind,source=$(pwd)/data/tb_data,target=/home/rstudio/tbinenglanddataclean/data/tb_data -e USER=tbinenglanddataclean -e PASSWORD=tbinenglanddataclean seabbs/tbinenglanddataclean

The rstudio client can be found on port :8787 at your local machines ip. The default username:password is tbinenglanddataclean:tbinenglanddataclean, set the user with -e USER=username, and the password with - e PASSWORD=newpasswordhere. The default is to save the analysis files into the user directory. If running without the accomanying data then remove --mount type=bind,source=$(pwd)/data/tb_data,target=/home/rstudio/tbinenglanddataclean/data/tb_data.

To run a plain R terminal use:

docker run --rm -it --user seabbs tbinenglanddataclean /usr/bin/R

To run a plain bash session:

docker run --rm -it --user seabbs tbinenglanddataclean /bin/bash

To connect as root:

docker exec -ti -u root tbinenglanddataclean bash

tbinenglanddataclean's People

Contributors

seabbs avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Forkers

ethpop-and-ets

tbinenglanddataclean's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.