KIHeartFailure / eschyponatremia

R code for the data managment and statistical analysis performed for the paper Changes in sodium concentration during hospitalization for acute heart failure and their relation to long-term outcomes – from the ESC HFA EORP Heart Failure Long-Term Registry

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

R code for the project Changes in sodium concentration during hospitalization for acute heart failure and their relation to long-term outcomes – from the ESC HFA EORP Heart Failure Long-Term Registry

The aim of this R code is to be transparent and document the data handling and statistical analyses performed for the project.

Language

English (sprinkled with Swedish).

Data

The data consists of Swedish individual patient data and is not public, and therefore no data is stored in this repository.

Instructions

The project uses the R package projectTemplate, http://projecttemplate.net/ and is structured (and run) accordingly. Renv, https://rstudio.github.io/renv/articles/renv.html, is used for management of package dependencies.

Since the data is not available the code can not be run as is.

Workflow:

  1. Run src/load_munge_cache.R or set loading and munging options in ProjectTemplate::reload.project() to TRUE in reports/Statistical_report_XX.Rmd

  2. Knit reports/Statistical_report_XX.Rmd

Publication

https://onlinelibrary.wiley.com/doi/10.1002/ejhf.2873

About

R code for the data managment and statistical analysis performed for the paper Changes in sodium concentration during hospitalization for acute heart failure and their relation to long-term outcomes – from the ESC HFA EORP Heart Failure Long-Term Registry

License:GNU General Public License v3.0


Languages

Language:R 98.9%Language:TeX 1.1%