https://github.com/adibender/liver

R-Code for livertransplant analysis

https://github.com/adibender/liver

Science Score: 13.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
  • DOI references
  • Academic publication links
  • Committers with academic emails
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (7.5%) to scientific vocabulary
Last synced: 10 months ago · JSON representation

Repository

R-Code for livertransplant analysis

Basic Info
  • Host: GitHub
  • Owner: adibender
  • License: mit
  • Language: R
  • Default Branch: master
  • Size: 11.7 KB
Statistics
  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • Open Issues: 0
  • Releases: 0
Created almost 8 years ago · Last pushed almost 8 years ago
Metadata Files
Readme License

README.md

Liver transplantation analysis - Time to graft failure

This is the Code used for analysis of graft failure after liver transplantation. Unfortunately, the data could not be shared, therefore only the code is provided in this repository.

Preprocessing

  • import_raw.R: imports raw data, performs basic data cleaning, variable renaming and non-model based pre-selection, creates new variables. Does not perform general plausibility checks.

  • Note that transplantation date was only given with monthly precission.

  • apply_exclusion.R: applies exclusion criteria, stores number of deleted observations per exclusion criterion.

  • create_survvars.R: calculates the event/censoring time and status variable depending on which information is given.

  • The above steps are summarized in run_preproc.R

creation of the survival time and event/censoring indicator

The calculation of survival times and event/censoring indicators is based on the following variables:

  • retrans: When time until retransplantation is given we know the exact date of the procedure and know that the current liver did not completely fail until then, thus we consider this the most reliable information on the liver failure time

  • death: When retrans and death are given, we use the retrans variable as time to failure, otherwise we use death.

  • lastseen: When lastseen is given and nothing else, we consider lastseen as censoring time

  • fail and reregis: for patients where both, fail/reregis and either death or retrans were given we have seen that these variables are not reliable as the time difference between them can be very large, thus we exclude observations where only fail or reregis are given

  • When neither of the variables where given we set administrative censoring at 2013-12-31 and calculated the censoring time as 2013-12-31 - transplant.date.

Modeling

  • The confounder model is fit in confounder_model.R using mgcv::gam
  • The final model including donor age is fit in donorage_model.R

Owner

  • Name: Andreas Bender
  • Login: adibender
  • Kind: user
  • Company: LMU

GitHub Events

Total
Last Year

Committers

Last synced: 11 months ago

All Time
  • Total Commits: 2
  • Total Committers: 1
  • Avg Commits per committer: 2.0
  • Development Distribution Score (DDS): 0.0
Past Year
  • Commits: 0
  • Committers: 0
  • Avg Commits per committer: 0.0
  • Development Distribution Score (DDS): 0.0
Top Committers
Name Email Commits
Andreas Bender b****R@g****m 2

Issues and Pull Requests

Last synced: 11 months ago

All Time
  • Total issues: 0
  • Total pull requests: 0
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Total issue authors: 0
  • Total pull request authors: 0
  • Average comments per issue: 0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 0
  • Pull requests: 0
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Issue authors: 0
  • Pull request authors: 0
  • Average comments per issue: 0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
Pull Request Authors
Top Labels
Issue Labels
Pull Request Labels