Skip to content

Published manuscript attached. A collection of custom R commands for typical epidemiological analyses and publication-ready output. Includes functions for looping univariate regressions, latex table output, and publication-appropriate ggthemes. A series of Excel functions to simplify retrospective survival analysis are also provided within.

Notifications You must be signed in to change notification settings

malyalar/survival-analysis

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 

Repository files navigation

SurvivalAnalysis

A collection of R commands for typical epidemiological analyses and publication-ready output. Functions for repeated regression, test-for-trend in proportions, and more are located within. A series of Excel functions to simplify retrospective (or prospective) survival analysis is also provided.

The Problems and Solutions

Converting adverse event date collections into interpretable survival data

Imagine the following: you have a massive excel file with hundreds of rows of patients. Tens of columns of event types. And a bunch of dates for when each date occurs, if at all. When conducting survival analysis, either Cox regression or Kaplan Meier, you need processed data. You need just survival time, and survival status. But how can you reconcile all the different event types together, in a way that allows you to easily experiment with which adverse events should be included in the model?

The function provided within allows you to eaily input (with a 0 or 1) which adverse events should be included in the survival model, and then generate survival data. Furthermore, it can differentiate between events that occurred BEFORE a certain date, or AFTER a certain date. In this case, adverse event data was collected, but not all adverse events occurred AFTER the date of transplant. The function provided will allow you to differentiate, and count only post-transplant events.

Converting survival functions into publication-ready output

Included here are also some ggtheme parameters that probably generate the style of figure that most epidemiology journals are looking for. Included underneath are the requisite risk and cumulative events tables that many journals look for as well.

About

Published manuscript attached. A collection of custom R commands for typical epidemiological analyses and publication-ready output. Includes functions for looping univariate regressions, latex table output, and publication-appropriate ggthemes. A series of Excel functions to simplify retrospective survival analysis are also provided within.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published