Skip to content
 
 

Latest commit

 

History

8 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Reproducible analysis

These are the instructions for reproducing the statistical and demographical analysis regarding the paper exploring the disease-free life expectancy of brazilian deaf adults according to National Health Survey (PNS 2019) and IBGE life tables.

The work was done in a GNU/Linux machine but due to docker it should be possible to reproduce the results in other OS.

cat /etc/os-release
NAME="Linux Mint"
VERSION="20.3 (Una)"
ID=linuxmint
ID_LIKE=ubuntu
PRETTY_NAME="Linux Mint 20.3"
VERSION_ID="20.3"
HOME_URL="https://www.linuxmint.com/"
SUPPORT_URL="https://forums.linuxmint.com/"
BUG_REPORT_URL="http://linuxmint-troubleshooting-guide.readthedocs.io/en/latest/"
PRIVACY_POLICY_URL="https://www.linuxmint.com/"
VERSION_CODENAME=una
UBUNTU_CODENAME=focal

Overview of the ETL process

./imgs/plan.drawio.png

Minimal required software

Install wget, unzip and docker

sudo apt install wget unzip docker*

and configure docker

sudo usermod -a -G docker $USER ; newgrp docker

Login credentials for RStudio and PGAdmin4

Adjust accordingly the environment variables at .env case needed

# Environment variables for paa_paper project

# ETL container
ETL_USER=rstudio
ETL_PASS=paa

# RStudio container
RSTD_USER=rstudio
RSTD_PASS=paa

# PostgreSQL container
PG_DB=pns
PG_HOST=db
PG_USER=postgres
PG_PASSWORD=12345
PG_PORT=5432

# PGAdmin container
PGAD_EMAIL=paa@paa.com
PGAD_PASS=paa
PGAD_PORT=5050

Setup for analysis

In the terminal, type

docker-compose up --force-recreate --build

Open the web-browser and access

  • http://localhost:8787/ for RStudio or
  • http://localhost:5050/ for PGAdmin4

All scripts in the analyses/ folder are shared between the host OS and the RStudio container.

Note further that all GNU R packages needed for the statistical analysis are provided by the RStudio container to ensure reproducibility of results.

About

Reproducible statistical and demographic analysis for the PAA paper

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages